BattleAttackInfo.h 814 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * BattleAttackInfo.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 "BattleHex.h"
  12. #include "../CStack.h"
  13. class IBonusBearer;
  14. struct DLL_LINKAGE BattleAttackInfo
  15. {
  16. const IBonusBearer *attackerBonuses, *defenderBonuses;
  17. const CStack *attacker, *defender;
  18. BattleHex attackerPosition, defenderPosition;
  19. CHealth attackerHealth, defenderHealth;
  20. bool shooting;
  21. int chargedFields;
  22. bool luckyHit;
  23. bool unluckyHit;
  24. bool deathBlow;
  25. bool ballistaDoubleDamage;
  26. BattleAttackInfo(const CStack * Attacker, const CStack * Defender, bool Shooting = false);
  27. BattleAttackInfo reverse() const;
  28. };