1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-27 22:47:48 +02:00
vcmi/lib/battle/BattleUnitTurnReason.h

29 lines
800 B
C++

/*
* BattleUnitTurnReason.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
VCMI_LIB_NAMESPACE_BEGIN
enum class BattleUnitTurnReason : int8_t
{
/// Unit gained turn due to becoming first unit in turn queue
TURN_QUEUE,
/// Unit gained turn due to morale triggering
MORALE,
/// Unit (re)gained turn due to hero casting a spell while this unit is active
HERO_SPELLCAST,
/// Unit gained turn due to casting a spell while having ability to cast spells without spending turn
UNIT_SPELLCAST,
/// Unit gained turn for automatic action, player can not select action for this unit
AUTOMATIC_ACTION
};
VCMI_LIB_NAMESPACE_END