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
|
|
|
|
|
2022-07-26 15:07:42 +02:00
|
|
|
#include "BattleHex.h"
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
2017-07-20 06:08:49 +02:00
|
|
|
namespace battle
|
|
|
|
{
|
|
|
|
class Unit;
|
|
|
|
class CUnitState;
|
|
|
|
}
|
2017-06-24 15:51:07 +02:00
|
|
|
|
|
|
|
struct DLL_LINKAGE BattleAttackInfo
|
|
|
|
{
|
2017-07-20 06:08:49 +02:00
|
|
|
const battle::Unit * attacker;
|
|
|
|
const battle::Unit * defender;
|
2017-07-04 13:24:46 +02:00
|
|
|
|
2019-06-28 20:05:25 +02:00
|
|
|
BattleHex attackerPos;
|
|
|
|
BattleHex defenderPos;
|
|
|
|
|
2023-01-14 19:03:18 +02:00
|
|
|
int chargeDistance = 0;
|
|
|
|
bool shooting = false;
|
|
|
|
bool luckyStrike = false;
|
|
|
|
bool unluckyStrike = false;
|
|
|
|
bool deathBlow = false;
|
|
|
|
bool doubleDamage = false;
|
|
|
|
|
|
|
|
BattleAttackInfo(const battle::Unit * Attacker, const battle::Unit * Defender, int chargeDistance, bool Shooting);
|
2017-06-24 15:51:07 +02:00
|
|
|
BattleAttackInfo reverse() const;
|
|
|
|
};
|
2022-07-26 15:07:42 +02:00
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_END
|