2017-06-24 15:51:07 +02:00
|
|
|
/*
|
|
|
|
* 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"
|
2017-07-04 13:24:46 +02:00
|
|
|
#include "../CStack.h"
|
2017-06-24 15:51:07 +02:00
|
|
|
|
|
|
|
class IBonusBearer;
|
|
|
|
|
|
|
|
struct DLL_LINKAGE BattleAttackInfo
|
|
|
|
{
|
|
|
|
const IBonusBearer *attackerBonuses, *defenderBonuses;
|
|
|
|
const CStack *attacker, *defender;
|
|
|
|
BattleHex attackerPosition, defenderPosition;
|
|
|
|
|
2017-07-04 13:24:46 +02:00
|
|
|
CHealth attackerHealth, defenderHealth;
|
|
|
|
|
2017-06-24 15:51:07 +02:00
|
|
|
bool shooting;
|
|
|
|
int chargedFields;
|
|
|
|
|
|
|
|
bool luckyHit;
|
|
|
|
bool unluckyHit;
|
|
|
|
bool deathBlow;
|
|
|
|
bool ballistaDoubleDamage;
|
|
|
|
|
2017-06-26 18:50:35 +02:00
|
|
|
BattleAttackInfo(const CStack * Attacker, const CStack * Defender, bool Shooting = false);
|
2017-06-24 15:51:07 +02:00
|
|
|
BattleAttackInfo reverse() const;
|
|
|
|
};
|