List of target selection options.
More...
#include <GameData.h>
|
static std::string | to_string (const unsigned int id) |
| Retrieves a descriptive string from an option ID. More...
|
|
List of target selection options.
◆ to_string()
static std::string GameData::TARGET_MODES::to_string |
( |
const unsigned int |
id | ) |
|
|
inlinestatic |
Retrieves a descriptive string from an option ID.
- Parameters
-
- Returns
- Option lowercase description. "unknown_target_option" for unknown options.
◆ ALL_ROWS
const unsigned int GameData::TARGET_MODES::ALL_ROWS = 6 |
|
static |
Targets all, enemies and allies.
When true, all allies and enemies are targets, and the selection can't be changed.
◆ DEFAULT_ENEMY
const unsigned int GameData::TARGET_MODES::DEFAULT_ENEMY = 1 |
|
static |
The default target is an enemy.
When true, the cursor starts in an enemy row. When false, it starts in the ally row. It may or may not be possible to change it.
◆ DEFAULT_MULTIPLE
const unsigned int GameData::TARGET_MODES::DEFAULT_MULTIPLE = 2 |
|
static |
The default target is a group.
When true, the cursor starts will all the members of a row selected. When false, it starts with only one target selected. It may or may not be possible to change it.
◆ FIXED_ROW
const unsigned int GameData::TARGET_MODES::FIXED_ROW = 4 |
|
static |
The target group can be changed.
When true, the target cannot be changed between enemies and allies. In this case {
- See also
- default_enemy} will determine the group that can be targeted.
◆ RANDOM
const unsigned int GameData::TARGET_MODES::RANDOM = 7 |
|
static |
The target is random.
When multiple targets are selected, one will be selected at random to be the receiving target. Cursor will cycle among all viable targets.
◆ SELECTION_ENABLED
const unsigned int GameData::TARGET_MODES::SELECTION_ENABLED = 0 |
|
static |
The target can be selected.
If the target of the attack is selectable, at least between some subset of possible targets, this must be true.
◆ SHORT_RANGE
const unsigned int GameData::TARGET_MODES::SHORT_RANGE = 5 |
|
static |
The command is short ranged.
When true, if the target or the caster is not in the front of their row, the target will take half damage. Also, when true, an enemy covered by another enemy can't be targeted.
◆ TOGGLE_MULTIPLE
const unsigned int GameData::TARGET_MODES::TOGGLE_MULTIPLE = 3 |
|
static |
The selection can change between groups and individuals.
When true, the target can be changed between groups and individuals When false, only {
- See also
- default_multiple} determines if the target is an individual or a group.
The documentation for this class was generated from the following file: