Sign.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. #ifndef __EQ2_SIGN__
  17. #define __EQ2_SIGN__
  18. #include "Spawn.h"
  19. #define SIGN_TYPE_GENERIC 0
  20. #define SIGN_TYPE_ZONE 1
  21. using namespace std;
  22. class Sign : public Spawn{
  23. public:
  24. Sign();
  25. virtual ~Sign();
  26. bool IsSign(){ return true; }
  27. int32 GetWidgetID();
  28. void SetWidgetID(int32 val);
  29. void SetWidgetX(float val);
  30. float GetWidgetX();
  31. void SetWidgetY(float val);
  32. float GetWidgetY();
  33. void SetWidgetZ(float val);
  34. float GetWidgetZ();
  35. void SetSignIcon(int8 val);
  36. Sign* Copy();
  37. EQ2Packet* serialize(Player *player, int16 version);
  38. void HandleUse(Client* client, string command);
  39. int8 GetSignType();
  40. void SetSignType(int8 val);
  41. float GetSignZoneX();
  42. void SetSignZoneX(float val);
  43. float GetSignZoneY();
  44. void SetSignZoneY(float val);
  45. float GetSignZoneZ();
  46. void SetSignZoneZ(float val);
  47. float GetSignZoneHeading();
  48. void SetSignZoneHeading(float val);
  49. float GetSignDistance();
  50. void SetSignDistance(float val);
  51. int32 GetSignZoneID();
  52. void SetSignZoneID(int32 val);
  53. const char* GetSignTitle();
  54. void SetSignTitle(const char* val);
  55. const char* GetSignDescription();
  56. void SetSignDescription(const char* val);
  57. void SetIncludeLocation(bool val);
  58. bool GetIncludeLocation();
  59. void SetIncludeHeading(bool val);
  60. bool GetIncludeHeading();
  61. private:
  62. string description;
  63. string title;
  64. int8 sign_type;
  65. float widget_x;
  66. float widget_y;
  67. float widget_z;
  68. int32 widget_id;
  69. float zone_x;
  70. float zone_y;
  71. float zone_z;
  72. float zone_heading;
  73. int32 zone_id;
  74. float sign_distance;
  75. bool include_location;
  76. bool include_heading;
  77. };
  78. #endif