| 12345678910111213141516171819202122232425262728293031323334 |
- /*
- * BattleAttackInfo.h, part of VCMI engine
- *
- * Authors: listed in file AUTHORS in main folder
- *
- * License: GNU General Public License v2.0 or later
- * Full text of license available in license.txt file, in main folder
- *
- */
- #pragma once
- #include "BattleHex.h"
- #include "../CStack.h"
- class IBonusBearer;
- struct DLL_LINKAGE BattleAttackInfo
- {
- const IBonusBearer *attackerBonuses, *defenderBonuses;
- const CStack *attacker, *defender;
- BattleHex attackerPosition, defenderPosition;
- CHealth attackerHealth, defenderHealth;
- bool shooting;
- int chargedFields;
- bool luckyHit;
- bool unluckyHit;
- bool deathBlow;
- bool ballistaDoubleDamage;
- BattleAttackInfo(const CStack * Attacker, const CStack * Defender, bool Shooting = false);
- BattleAttackInfo reverse() const;
- };
|