ClientPacketFunctions.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. EQ2Emulator: Everquest II Server Emulator
  3. Copyright (C) 2007 EQ2EMulator Development Team (http://www.eq2emulator.net)
  4. This file is part of EQ2Emulator.
  5. EQ2Emulator is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. EQ2Emulator is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with EQ2Emulator. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "client.h"
  18. struct HouseZone;
  19. struct PlayerHouse;
  20. struct HeroicOP;
  21. class ClientPacketFunctions
  22. {
  23. public:
  24. static void SendFinishedEntitiesList ( Client* client );
  25. static void SendLoginDenied ( Client* client );
  26. static void SendLoginAccepted ( Client* client );
  27. static void SendCommandList ( Client* client );
  28. static void SendGameWorldTime ( Client* client );
  29. static void SendCharacterData ( Client* client );
  30. static void SendCharacterSheet ( Client* client );
  31. static void SendSkillBook ( Client* client );
  32. static void SendTraitList ( Client* client );
  33. static void SendAbilities ( Client* client );
  34. static void SendClassAA ( Client* client );
  35. static void SendCommandNamePacket ( Client* client );
  36. static void SendQuickBarInit ( Client* client );
  37. static void SendMOTD ( Client* client );
  38. static void SendCharacterMacros(Client* client);
  39. static void SendUpdateSpellBook ( Client* client );
  40. static void SendLoginCommandMessages ( Client* client );
  41. static void SendSkillSlotMappings(Client* client);
  42. static void SendRestartZoneMsg(Client* client);
  43. static void SendServerControlFlags(Client* client, int8 param, int8 param_val, int8 value);
  44. static void SendInstanceList(Client* client);
  45. static void SendZoneChange(Client* client, char* zone_ip, int16 zone_port, int32 key);
  46. static void SendStateCommand(Client* client, int32 spawn_id, int32 state);
  47. /* Tradeskills (/Tradeskills/TradeskillsPackets.cpp) */
  48. static void SendCreateFromRecipe(Client* client, int32 recipeID);
  49. static void SendItemCreationUI(Client* client, Recipe* recipe);
  50. static void StopCrafting(Client* client);
  51. static void CounterReaction(Client* client, bool countered);
  52. static void SendAchievementList(Client* client);
  53. /* Housing (/Housing/HousingPackets.cpp) */
  54. static void SendHousePurchace(Client* client, HouseZone* hz, int32 spawnID);
  55. static void SendBaseHouseWindow(Client* client, HouseZone* hz, PlayerHouse* ph, int32 spawnID);
  56. static void SendHouseVisitWindow(Client* client, vector<PlayerHouse*> houses);
  57. /* Heroic OP's (/HeroicOp/HeroicOpPackets.cpp) */
  58. static void SendHeroicOPUpdate(Client* client, HeroicOP* ho);
  59. //UI updates for trigger count and damage remaining on maintained spells
  60. static void SendMaintainedExamineUpdate(Client* client, int8 slot_pos, int32 update_value, int8 update_type);
  61. };