A battle's objects and sprites, each unit's command and action record, and the spoils. More...
Go to the source code of this file.
Data Structures | |
| struct | BattleObj |
| A unit's place on the battlefield: its sprite object, resources and animations, its anchor spot and scale, and the conditions it shows. More... | |
| struct | BattleActionRecord |
| A unit's chosen action for the turn: its command, the command's parameter, its target and range, and its priority in the turn order. More... | |
| struct | BattleSpoils |
| A battle's spoils so far: coins, experience, enemies defeated and up to four items. More... | |
Enumerations | |
| enum | BattleCommand { CMD_ATTACK = 0 , CMD_PSYNERGY = 1 , CMD_ITEM = 2 , CMD_DEFEND = 3 , CMD_ABILITY = 4 , CMD_DJINN = 5 , CMD_SUMMON = 6 , CMD_DEFEND2 = 7 , CMD_NONE = 8 , CMD_FLEE = 99 } |
| BattleActionRecord.command and BattlePlan's copy of it: what a unit does on its turn. More... | |
Functions | |
| STATIC_ASSERT (sizeof(struct BattleObj)==0x2c) | |
| STATIC_ASSERT (offsetof(struct BattleObj, anchorX)==0x0c) | |
| STATIC_ASSERT (offsetof(struct BattleObj, activeConditions)==0x1c) | |
| STATIC_ASSERT (offsetof(struct BattleObj, cycleTimer)==0x1f) | |
| STATIC_ASSERT (offsetof(struct BattleObj, active)==0x28) | |
| STATIC_ASSERT (sizeof(struct BattleActionRecord)==0x10) | |
| STATIC_ASSERT (offsetof(struct BattleActionRecord, priority)==0x04) | |
| STATIC_ASSERT (offsetof(struct BattleActionRecord, command)==0x06) | |
| STATIC_ASSERT (offsetof(struct BattleActionRecord, parameter)==0x08) | |
| STATIC_ASSERT (offsetof(struct BattleActionRecord, target)==0x0a) | |
| STATIC_ASSERT (sizeof(struct BattleSpoils)==0x14) | |
A battle's objects and sprites, each unit's command and action record, and the spoils.
Definition in file battle_session.h.
| enum BattleCommand |
BattleActionRecord.command and BattlePlan's copy of it: what a unit does on its turn.
| Enumerator | |
|---|---|
| CMD_ATTACK | |
| CMD_PSYNERGY | |
| CMD_ITEM | |
| CMD_DEFEND | |
| CMD_ABILITY | an enemy's ability |
| CMD_DJINN | |
| CMD_SUMMON | |
| CMD_DEFEND2 | an enemy's Total Defense (effect 47) |
| CMD_NONE | nothing this turn |
| CMD_FLEE | |
Definition at line 39 of file battle_session.h.
| STATIC_ASSERT | ( | sizeof(struct BattleObj) | = =0x2c | ) |
| STATIC_ASSERT | ( | sizeof(struct BattleActionRecord) | = =0x10 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleActionRecord, priority) | = =0x04 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleActionRecord, command) | = =0x06 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleActionRecord, parameter) | = =0x08 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleActionRecord, target) | = =0x0a | ) |
| STATIC_ASSERT | ( | sizeof(struct BattleSpoils) | = =0x14 | ) |