Skip to Content
The Alchemy Project

include/battle/battle_actor.h

The motion object: a battle unit's actor as the battle moves it, and the sprites it draws.

Included by battle_internal.h, battle_effect_internal.h, field_psynergy_internal.h, script_commands_internal.h and screens_battle_status.c.

Structures

NameDescription
structMOTION_OBJECTAn effect object that moves and draws one sprite: its position, scale, velocity and target, and its per-tick update.

Macros

NameDescription
#defineBATTLE_UNIT_GRAVITY (toFIXED(67) / 100)The gravity a battle unit falls under, about 0.67 pixels a tick per tick in 16.16, as verticalMotionStrength: btMotionReturnToSpot sets it whenever a unit goes back to its spot, and effects that change a unit's gravity for a leap or a lift give it this one back.

Description

The motion object: a battle unit's actor as the battle moves it, and the sprites it draws.

Macros in detail

BATTLE_UNIT_GRAVITY

#define BATTLE_UNIT_GRAVITY (toFIXED(67) / 100)

The gravity a battle unit falls under, about 0.67 pixels a tick per tick in 16.16, as verticalMotionStrength: btMotionReturnToSpot sets it whenever a unit goes back to its spot, and effects that change a unit's gravity for a leap or a lift give it this one back.

Referenced by btEffectHopBackToSpot(), btEffectRunAstralBlast(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunProcne(), btEffectRunQuake(), btEffectRunSoulShatter(), btEffectSetApproachMotion(), btIrisRestoreBattle(), btMotionApproachTarget(), btMotionLeapToward(), btMotionReturnObjectToSpot() and btMotionReturnToSpot().

Definition at line 89 of file battle_actor.h.