BattleAttackInfo.h 734 B

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