include/battle/battle_actor.h
The motion object: a battle unit's actor as the battle moves it, and the sprites it draws.
#include "fixed_math.h"#include "types.h"#include "static_assert.h"#include "battle/battle_action.h"#include "edition.h"
Included by battle_internal.h, battle_effect_internal.h, field_psynergy_internal.h, script_commands_internal.h and screens_battle_status.c.
Structures
| Name | Description | |
|---|---|---|
struct | MOTION_OBJECT | An effect object that moves and draws one sprite: its position, scale, velocity and target, and its per-tick update. |
Macros
| Name | Description | |
|---|---|---|
#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. |
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.