Alchemy
Loading...
Searching...
No Matches

battle_party.h File Reference

Which units are in a battle, and the Djinn recovery list. More...

Go to the source code of this file.

Data Structures

struct  DjinnRecoveryEntry
 A Djinni on standby or recovering: its element and index, its owner, and the turns until it is set again. More...
struct  DjinnRecoveryList
 One side's Djinn recovery list: up to 64 entries and their count. More...
struct  DjinnRecoveryTable
 One side's Djinn recovery table, as Djinn_GetRecoveryTable returns it. More...

Enumerations

enum  BattleUnitPresence { BATTLE_UNIT_ABSENT = 0 , BATTLE_UNIT_ENEMY = 1 , BATTLE_UNIT_PARTY = 2 }
 BattleUnit.side: which side a unit fights on, if it is in the battle. More...
enum  BattleUnitListMark { BATTLE_UNIT_REMOVED = 0xfe , BATTLE_UNIT_LIST_END = 0xff }
 Marks in a list of unit ids, such as BattleWork.partyUnits and enemyIds. More...
enum  BattleSideMask { BATTLE_SIDE_PARTY = 1 , BATTLE_SIDE_ENEMIES = 2 , BATTLE_SIDE_BOTH = BATTLE_SIDE_PARTY | BATTLE_SIDE_ENEMIES }
 Which sides a unit list takes, as BattleParty_ListLivingUnits reads it. More...

Functions

 STATIC_ASSERT (sizeof(struct DjinnRecoveryEntry)==4)

Detailed Description

Which units are in a battle, and the Djinn recovery list.

Definition in file battle_party.h.

Enumeration Type Documentation

◆ BattleUnitPresence

BattleUnit.side: which side a unit fights on, if it is in the battle.

Enumerator
BATTLE_UNIT_ABSENT 
BATTLE_UNIT_ENEMY 
BATTLE_UNIT_PARTY 

Definition at line 11 of file battle_party.h.

◆ BattleUnitListMark

Marks in a list of unit ids, such as BattleWork.partyUnits and enemyIds.

Enumerator
BATTLE_UNIT_REMOVED 

a place whose unit has left the battle

BATTLE_UNIT_LIST_END 

ends the list

Definition at line 18 of file battle_party.h.

◆ BattleSideMask

Which sides a unit list takes, as BattleParty_ListLivingUnits reads it.

Enumerator
BATTLE_SIDE_PARTY 
BATTLE_SIDE_ENEMIES 
BATTLE_SIDE_BOTH 

Definition at line 24 of file battle_party.h.

Function Documentation

◆ STATIC_ASSERT()

STATIC_ASSERT ( sizeof(struct DjinnRecoveryEntry) = =4)