2
0

BattleUnitTurnReason.h 800 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * BattleUnitTurnReason.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. VCMI_LIB_NAMESPACE_BEGIN
  12. enum class BattleUnitTurnReason : int8_t
  13. {
  14. /// Unit gained turn due to becoming first unit in turn queue
  15. TURN_QUEUE,
  16. /// Unit gained turn due to morale triggering
  17. MORALE,
  18. /// Unit (re)gained turn due to hero casting a spell while this unit is active
  19. HERO_SPELLCAST,
  20. /// Unit gained turn due to casting a spell while having ability to cast spells without spending turn
  21. UNIT_SPELLCAST,
  22. /// Unit gained turn for automatic action, player can not select action for this unit
  23. AUTOMATIC_ACTION
  24. };
  25. VCMI_LIB_NAMESPACE_END