EnemyInfo.h 558 B

12345678910111213141516171819202122232425262728
  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/BattleState.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) : s(_s)
  20. {}
  21. void calcDmg(const CStack * ourStack);
  22. bool operator==(const EnemyInfo& ei) const
  23. {
  24. return s == ei.s;
  25. }
  26. };