9
3

Object.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_OBJECT__
  17. #define __EQ2_OBJECT__
  18. #include "Spawn.h"
  19. class Object : public Spawn{
  20. public:
  21. Object();
  22. virtual ~Object();
  23. void SetClickable(bool click){
  24. clickable = click;
  25. }
  26. void SetZone(char* zone){
  27. zone_name = zone;
  28. }
  29. Object* Copy();
  30. bool IsObject(){ return true; }
  31. void HandleUse(Client* client, string command);
  32. bool clickable;
  33. char* zone_name;
  34. EQ2Packet* serialize(Player* player, int16 version);
  35. void SetDeviceID(int8 val) { m_deviceID = val; }
  36. int8 GetDeviceID() { return m_deviceID; }
  37. private:
  38. int8 m_deviceID;
  39. };
  40. #endif