Skip to Content
The Alchemy Project

struct FORMATION

An enemy formation: its battle type and up to five kinds of enemy, each with the fewest and most of it that appear. More…

Declared in formations.h.

Fields

NameDescription
Uint8layouta FORMATION_LAYOUT_
Uint8memberIds [FORMATION_MEMBERS]rows of enemy_table.c (enemy id less ENEMY_ID_FIRST)
Uint8minCounts [FORMATION_MEMBERS]each always appears this often
Uint8maxCounts [FORMATION_MEMBERS]max per kind while 6 sprite slots fit them; 0 if absent

Description

An enemy formation: its battle type and up to five kinds of enemy, each with the fewest and most of it that appear. btFormationBuildEnemyList draws a battle's enemies from it.

struct FORMATION

Referenced by btFormationAverageLevel(), btFormationBuildEnemyList(), btFormationGetRandomMember() and Formations.

Definition at line 30 of file formations.h.

Fields in detail

layout

Uint8 layout

a FORMATION_LAYOUT_

memberIds

Uint8 memberIds[FORMATION_MEMBERS]

rows of enemy_table.c (enemy id less ENEMY_ID_FIRST)

minCounts

Uint8 minCounts[FORMATION_MEMBERS]

each always appears this often

maxCounts

Uint8 maxCounts[FORMATION_MEMBERS]

max per kind while 6 sprite slots fit them; 0 if absent