EnemyInfo.h 567 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * EnemyInfo.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../../lib/battle/BattleHex.h"
  12. class CStack;
  13. class EnemyInfo
  14. {
  15. public:
  16. const CStack * s;
  17. int adi, adr;
  18. std::vector<BattleHex> attackFrom; //for melee fight
  19. EnemyInfo(const CStack * _s)
  20. : s(_s)
  21. {}
  22. void calcDmg(const CStack * ourStack);
  23. bool operator==(const EnemyInfo & ei) const
  24. {
  25. return s == ei.s;
  26. }
  27. };