ClientPacketFunctions.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 SendCommandNamePacket ( Client* client );
  35. static void SendQuickBarInit ( Client* client );
  36. static void SendMOTD ( Client* client );
  37. static void SendCharacterMacros(Client* client);
  38. static void SendUpdateSpellBook ( Client* client );
  39. static void SendSkillSlotMappings(Client* client);
  40. static void SendRestartZoneMsg(Client* client);
  41. static void SendServerControlFlags(Client* client, int8 param, int8 param_val, int8 value);
  42. static void SendInstanceList(Client* client);
  43. static void SendZoneChange(Client* client, char* zone_ip, int16 zone_port, int32 key);
  44. static void SendStateCommand(Client* client, int32 spawn_id, int32 state);
  45. static void SendFlyMode(Client* client, int8 flymode, bool updateCharProperty=true);
  46. /* Tradeskills (/Tradeskills/TradeskillsPackets.cpp) */
  47. static void SendCreateFromRecipe(Client* client, int32 recipeID);
  48. static void SendItemCreationUI(Client* client, Recipe* recipe);
  49. static void StopCrafting(Client* client);
  50. static void CounterReaction(Client* client, bool countered);
  51. static void SendAchievementList(Client* client);
  52. /* Housing (/Housing/HousingPackets.cpp) */
  53. static void SendHousePurchase(Client* client, HouseZone* hz, int32 spawnID);
  54. static void SendHousingList(Client* client);
  55. static void SendBaseHouseWindow(Client* client, HouseZone* hz, PlayerHouse* ph, int32 spawnID);
  56. static void SendHouseVisitWindow(Client* client, vector<PlayerHouse*> houses);
  57. static void SendLocalizedTextMessage(Client* client);
  58. /* Heroic OP's (/HeroicOp/HeroicOpPackets.cpp) */
  59. static void SendHeroicOPUpdate(Client* client, HeroicOP* ho);
  60. //UI updates for trigger count and damage remaining on maintained spells
  61. static void SendMaintainedExamineUpdate(Client* client, int8 slot_pos, int32 update_value, int8 update_type);
  62. };