BattleAttackInfo.h 656 B

12345678910111213141516171819202122232425262728293031
  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. struct DLL_LINKAGE BattleAttackInfo
  17. {
  18. const battle::Unit * attacker;
  19. const battle::Unit * defender;
  20. bool shooting;
  21. int chargedFields;
  22. double additiveBonus;
  23. double multBonus;
  24. BattleAttackInfo(const battle::Unit * Attacker, const battle::Unit * Defender, bool Shooting = false);
  25. BattleAttackInfo reverse() const;
  26. };