/TGame/TServerMS/Player/FormData.h

http://awoe.googlecode.com/ · C Header · 33 lines · 22 code · 10 blank · 1 comment · 0 complexity · eb062853efb37fb7c4e91b3926ba2d69 MD5 · raw file

  1. #ifndef ___PLAYER_FORM_DATA___
  2. #define ___PLAYER_FORM_DATA___
  3. #define FORM_SLOT_CNT 5
  4. #define FORM_CNT 9
  5. class Form
  6. {
  7. public:
  8. Form();
  9. short flvl;
  10. short fslot[FORM_SLOT_CNT];
  11. void set(const short& vflvl, const short* vfslot);
  12. void set(const short& idx, const short& rid);
  13. short get(const short& idx);
  14. };
  15. class Forms
  16. {
  17. public:
  18. Forms();
  19. // player's current active form type
  20. short ftype;
  21. Form forms[FORM_CNT];
  22. };
  23. #endif