mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
34 lines
797 B
C++
34 lines
797 B
C++
/*
|
|
* 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"
|
|
|
|
class CStack;
|
|
class IBonusBearer;
|
|
|
|
struct DLL_LINKAGE BattleAttackInfo
|
|
{
|
|
const IBonusBearer *attackerBonuses, *defenderBonuses;
|
|
const CStack *attacker, *defender;
|
|
BattleHex attackerPosition, defenderPosition;
|
|
|
|
int attackerCount, defenderCount;
|
|
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;
|
|
};
|