BattleAttackInfo.h 788 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. VCMI_LIB_NAMESPACE_BEGIN
  13. namespace battle
  14. {
  15. class Unit;
  16. class CUnitState;
  17. }
  18. struct DLL_LINKAGE BattleAttackInfo
  19. {
  20. const battle::Unit * attacker;
  21. const battle::Unit * defender;
  22. BattleHex attackerPos;
  23. BattleHex defenderPos;
  24. bool shooting;
  25. int chargedFields;
  26. double additiveBonus;
  27. double multBonus;
  28. BattleAttackInfo(const battle::Unit * Attacker, const battle::Unit * Defender, bool Shooting = false);
  29. BattleAttackInfo reverse() const;
  30. };
  31. VCMI_LIB_NAMESPACE_END