Alchemy
Loading...
Searching...
No Matches

BattleAutomaticState Struct Reference

An enemy's memory of its action choice, kept in BattleUnit.rewards (0 in every row of enemies.tsv, so it starts cleared). More...

Data Fields

unsigned initialized: 1
 strategy 3 has drawn its random start
unsigned selection: 3
 the place in its action list, 0 to 7
unsigned remaining: 28
 not used here

Detailed Description

An enemy's memory of its action choice, kept in BattleUnit.rewards (0 in every row of enemies.tsv, so it starts cleared).

Only action strategies 3 and 4 use it. bits: 31..4 unused | 3..1 selection | 0 initialized

Definition at line 11 of file enemy_ai.c.

Field Documentation

◆ initialized

unsigned BattleAutomaticState::initialized

strategy 3 has drawn its random start

Definition at line 12 of file enemy_ai.c.

Referenced by BattleCommand_SelectAutomatic().

◆ selection

unsigned BattleAutomaticState::selection

the place in its action list, 0 to 7

Definition at line 13 of file enemy_ai.c.

Referenced by BattleCommand_SelectAutomatic().

◆ remaining

unsigned BattleAutomaticState::remaining

not used here

Definition at line 14 of file enemy_ai.c.