Skip to Content
The Alchemy Project

struct SAVED_BATTLE_OBJECT

What btMotionCallBeast saves of the battle object a called beast borrows, for btMotionDismissBeast to put back.

Declared in battle_internal.h.

Fields

NameDescription
BATTLE_OBJECTobjectThe borrowed object, copied whole.
Uint32 *bufThe beast's pictures: a heap block of its own, or ActorSpriteSlots when the object borrowed is another side's.
Uint8unitIdThe unit whose battle object the beast borrows.
Uint8single1 when the caster and its first target are on opposite sides: the beast takes the caster's own object.
Uint8reactivate1 when the borrowed object had to be made first.
Uint16classIdThe beast's enemy id (ENEMY_WILD_WOLF and so on).

Description

What btMotionCallBeast saves of the battle object a called beast borrows, for btMotionDismissBeast to put back.

struct SAVED_BATTLE_OBJECT

Referenced by btMotionCallBeast(), btMotionDismissBeast() and btMotionReleaseBuffer().

Definition at line 237 of file battle_internal.h.

Fields in detail

object

BATTLE_OBJECT object

The borrowed object, copied whole.

buf

Uint32 *buf

The beast's pictures: a heap block of its own, or ActorSpriteSlots when the object borrowed is another side's.

unitId

Uint8 unitId

The unit whose battle object the beast borrows.

single

Uint8 single

1 when the caster and its first target are on opposite sides: the beast takes the caster's own object.

reactivate

Uint8 reactivate

1 when the borrowed object had to be made first.

classId

Uint16 classId

The beast's enemy id (ENEMY_WILD_WOLF and so on).