|
Digimon World 3 decomp
The European version, SLES_039.36
|
A fighter's battle script (FIGHTSTG_updateBattleScript): a list of s16 commands in an archive entry of the fighter's file, which play its motions, effects, sounds and camera moves. More...
#include <battle/battle_mode/effect.h>
Data Fields | |
| s32 | id |
| s32 | key1 |
| s32 | key2 |
| s32 | state |
| s32 | substate |
| s32 | step |
| s32 | counter |
| s32 | paused |
| s32 | childCount |
| void * | children |
| void(* | setState )(struct BattleScript *task, s32 state) |
| void(* | setSubstate )(struct BattleScript *task, s32 substate) |
| void(* | setStep )(struct BattleScript *task, s32 step) |
| void(* | setCounter )(struct BattleScript *task, s32 counter) |
| void(* | nextState )(struct BattleScript *task) |
| void(* | nextSubstate )(struct BattleScript *task) |
| void(* | nextStep )(struct BattleScript *task) |
| void(* | tickCounter )(struct BattleScript *task) |
| void(* | update )() |
| void(* | destroy )(struct BattleScript *task) |
| s32 | enemy |
| the script is the enemy's (nonzero) or the partner's | |
| s32 | index |
| the script, in the fighter's archive | |
| s32 | hits [4] |
| 0 a hit, 3 a miss; [3] how it ended | |
| s32 | stage |
| what the stage command's 0x38 stands for | |
| s32 | effect |
| the sprite effect the effect command's 9999 stands for | |
| s32 | sound |
| what the sound commands' 0x62 and 0x63 stand for on a hit | |
| s32 | unk74 |
| HitEffect.unk5C; nothing reads it. | |
| s32 | fighter |
| s32 | model |
| the Models task's id | |
| s32 | archive |
| s32 | pad |
| never read or written | |
| Models * | models |
| s16 * | pc |
| s32 | hitsPlayed |
| how many hits command 5 has played | |
| s32 | soundsPlayed |
| and the sound commands | |
| s32 | waiting |
| s32 | wait |
| the time left | |
| s32 | loadStep |
| FIGHTSTG_runScriptEffect's, loading a 2D effect. | |
| s32 | effectImages |
| FIGHTSTG_findEffectSheet's. | |
| s32 | effectSheet |
| Vec2 | effectTexPos |
A fighter's battle script (FIGHTSTG_updateBattleScript): a list of s16 commands in an archive entry of the fighter's file, which play its motions, effects, sounds and camera moves.
The types that the headers point to before they are defined.
| s32 BattleScript::state |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| s32 BattleScript::substate |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| s32 BattleScript::step |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| void(* BattleScript::setState) (struct BattleScript *task, s32 state) |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| void(* BattleScript::setSubstate) (struct BattleScript *task, s32 substate) |
| void(* BattleScript::setStep) (struct BattleScript *task, s32 step) |
| void(* BattleScript::setCounter) (struct BattleScript *task, s32 counter) |
| void(* BattleScript::nextState) (struct BattleScript *task) |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| void(* BattleScript::nextSubstate) (struct BattleScript *task) |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| void(* BattleScript::nextStep) (struct BattleScript *task) |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| void(* BattleScript::tickCounter) (struct BattleScript *task) |
| void(* BattleScript::destroy) (struct BattleScript *task) |
Definition at line 145 of file effect.h.
Referenced by FIGHTSTG_runScriptHits().
| s32 BattleScript::enemy |
the script is the enemy's (nonzero) or the partner's
Definition at line 146 of file effect.h.
Referenced by FIGHTSTG_getScriptModel(), FIGHTSTG_runItemScript(), FIGHTSTG_runScriptHits(), FIGHTSTG_updateBattleScript(), FIGHTSTG_updateHitEffect(), pickEffect(), playCounterTech(), WFIGHTMN_startTech(), and WFIGHTMN_takeDamage().
| s32 BattleScript::index |
the script, in the fighter's archive
Definition at line 147 of file effect.h.
Referenced by chooseEnemyScript(), choosePartnerScript(), FIGHTSTG_runItemScript(), FIGHTSTG_runScriptHits(), FIGHTSTG_runScriptModel(), FIGHTSTG_updateBattleScript(), FIGHTSTG_updateHitEffect(), lowerEnemyStat(), pickEffect(), playCounterTech(), setItemScript(), setUpDrain(), setUpItemTech(), and WFIGHTMN_takeDamage().
| s32 BattleScript::hits[4] |
0 a hit, 3 a miss; [3] how it ended
Definition at line 148 of file effect.h.
Referenced by FIGHTSTG_runScriptHits(), FIGHTSTG_runScriptSound(), pickEffect(), playCounterTech(), setUpDrain(), setUpItemTech(), WFIGHTMN_startTech(), and WFIGHTMN_takeDamage().
| s32 BattleScript::stage |
what the stage command's 0x38 stands for
Definition at line 149 of file effect.h.
Referenced by chooseEnemyScript(), choosePartnerScript(), FIGHTSTG_runItemScript(), FIGHTSTG_runScriptStage(), lowerEnemyStat(), pickEffect(), playCounterTech(), setItemScript(), setUpDrain(), setUpItemTech(), WFIGHTMN_startTech(), and WFIGHTMN_takeDamage().
| s32 BattleScript::effect |
the sprite effect the effect command's 9999 stands for
Definition at line 150 of file effect.h.
Referenced by chooseEnemyScript(), choosePartnerScript(), FIGHTSTG_runItemScript(), FIGHTSTG_runScriptEffect(), lowerEnemyStat(), playCounterTech(), setItemScript(), setUpDrain(), setUpItemTech(), and WFIGHTMN_takeDamage().
| s32 BattleScript::sound |
what the sound commands' 0x62 and 0x63 stand for on a hit
Definition at line 151 of file effect.h.
Referenced by chooseEnemyScript(), choosePartnerScript(), FIGHTSTG_runItemScript(), FIGHTSTG_runScriptSound(), lowerEnemyStat(), pickEffect(), playCounterTech(), setItemScript(), setUpDrain(), setUpItemTech(), and WFIGHTMN_takeDamage().
| s32 BattleScript::unk74 |
HitEffect.unk5C; nothing reads it.
Definition at line 152 of file effect.h.
Referenced by FIGHTSTG_updateHitEffect().
| s32 BattleScript::fighter |
Definition at line 153 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| s32 BattleScript::model |
the Models task's id
Definition at line 154 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| s32 BattleScript::archive |
Definition at line 155 of file effect.h.
Referenced by FIGHTSTG_updateBattleScript().
| Models* BattleScript::models |
Definition at line 157 of file effect.h.
Referenced by FIGHTSTG_runScriptModel(), FIGHTSTG_runScriptStage(), and FIGHTSTG_updateBattleScript().
| s16* BattleScript::pc |
Definition at line 158 of file effect.h.
Referenced by FIGHTSTG_runScriptCamera(), FIGHTSTG_runScriptEffect(), FIGHTSTG_runScriptEffectModel(), FIGHTSTG_runScriptFade(), FIGHTSTG_runScriptHits(), FIGHTSTG_runScriptModel(), FIGHTSTG_runScriptSound(), FIGHTSTG_runScriptStage(), FIGHTSTG_runScriptWait(), FIGHTSTG_updateBattleScript(), moveModelHome(), and turnModel().
| s32 BattleScript::hitsPlayed |
how many hits command 5 has played
Definition at line 159 of file effect.h.
Referenced by FIGHTSTG_runScriptHits().
| s32 BattleScript::soundsPlayed |
and the sound commands
Definition at line 160 of file effect.h.
Referenced by FIGHTSTG_runScriptSound().
| s32 BattleScript::waiting |
Definition at line 161 of file effect.h.
Referenced by FIGHTSTG_runScriptWait().
| s32 BattleScript::wait |
| s32 BattleScript::loadStep |
FIGHTSTG_runScriptEffect's, loading a 2D effect.
Definition at line 163 of file effect.h.
Referenced by FIGHTSTG_runScriptEffect().
| s32 BattleScript::effectImages |
FIGHTSTG_findEffectSheet's.
Definition at line 164 of file effect.h.
Referenced by FIGHTSTG_runScriptEffect().
| s32 BattleScript::effectSheet |
Definition at line 165 of file effect.h.
Referenced by FIGHTSTG_runScriptEffect().
| Vec2 BattleScript::effectTexPos |
Definition at line 166 of file effect.h.
Referenced by FIGHTSTG_runScriptEffect().