SpellBuff.h 322 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BEHAVIORTREE_SPELLBUFF_H
  2. #define BEHAVIORTREE_SPELLBUFF_H
  3. namespace Egametang {
  4. class Unit
  5. {
  6. public:
  7. int health;
  8. };
  9. class Spell
  10. {
  11. public:
  12. Unit* caster;
  13. Unit* victim;
  14. };
  15. class Buff
  16. {
  17. public:
  18. int buffType;
  19. public:
  20. Buff(): buffType(0)
  21. {
  22. }
  23. };
  24. } // namespace Egametang
  25. #endif // BEHAVIORTREE_SPELLBUFF_H