Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
BattleScript Struct Reference

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>

Collaboration diagram for BattleScript:
[legend]

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
 

Detailed Description

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.

Definition at line 144 of file effect.h.

Field Documentation

◆ id

s32 BattleScript::id

Definition at line 145 of file effect.h.

◆ key1

s32 BattleScript::key1

Definition at line 145 of file effect.h.

◆ key2

s32 BattleScript::key2

Definition at line 145 of file effect.h.

◆ state

s32 BattleScript::state

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ substate

s32 BattleScript::substate

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ step

s32 BattleScript::step

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ counter

s32 BattleScript::counter

Definition at line 145 of file effect.h.

◆ paused

s32 BattleScript::paused

Definition at line 145 of file effect.h.

◆ childCount

s32 BattleScript::childCount

Definition at line 145 of file effect.h.

◆ children

void* BattleScript::children

Definition at line 145 of file effect.h.

◆ setState

void(* BattleScript::setState) (struct BattleScript *task, s32 state)

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ setSubstate

void(* BattleScript::setSubstate) (struct BattleScript *task, s32 substate)

Definition at line 145 of file effect.h.

◆ setStep

void(* BattleScript::setStep) (struct BattleScript *task, s32 step)

Definition at line 145 of file effect.h.

◆ setCounter

void(* BattleScript::setCounter) (struct BattleScript *task, s32 counter)

Definition at line 145 of file effect.h.

◆ nextState

void(* BattleScript::nextState) (struct BattleScript *task)

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ nextSubstate

void(* BattleScript::nextSubstate) (struct BattleScript *task)

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ nextStep

void(* BattleScript::nextStep) (struct BattleScript *task)

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ tickCounter

void(* BattleScript::tickCounter) (struct BattleScript *task)

Definition at line 145 of file effect.h.

◆ update

void(* BattleScript::update) ()

Definition at line 145 of file effect.h.

◆ destroy

void(* BattleScript::destroy) (struct BattleScript *task)

Definition at line 145 of file effect.h.

Referenced by FIGHTSTG_runScriptHits().

◆ enemy

◆ index

◆ hits

s32 BattleScript::hits[4]

◆ stage

◆ effect

s32 BattleScript::effect

◆ sound

s32 BattleScript::sound

◆ unk74

s32 BattleScript::unk74

HitEffect.unk5C; nothing reads it.

Definition at line 152 of file effect.h.

Referenced by FIGHTSTG_updateHitEffect().

◆ fighter

s32 BattleScript::fighter

Definition at line 153 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ model

s32 BattleScript::model

the Models task's id

Definition at line 154 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ archive

s32 BattleScript::archive

Definition at line 155 of file effect.h.

Referenced by FIGHTSTG_updateBattleScript().

◆ pad

s32 BattleScript::pad

never read or written

Definition at line 156 of file effect.h.

◆ models

Models* BattleScript::models

◆ pc

◆ hitsPlayed

s32 BattleScript::hitsPlayed

how many hits command 5 has played

Definition at line 159 of file effect.h.

Referenced by FIGHTSTG_runScriptHits().

◆ soundsPlayed

s32 BattleScript::soundsPlayed

and the sound commands

Definition at line 160 of file effect.h.

Referenced by FIGHTSTG_runScriptSound().

◆ waiting

s32 BattleScript::waiting

Definition at line 161 of file effect.h.

Referenced by FIGHTSTG_runScriptWait().

◆ wait

s32 BattleScript::wait

the time left

Definition at line 162 of file effect.h.

Referenced by FIGHTSTG_runScriptWait().

◆ loadStep

s32 BattleScript::loadStep

FIGHTSTG_runScriptEffect's, loading a 2D effect.

Definition at line 163 of file effect.h.

Referenced by FIGHTSTG_runScriptEffect().

◆ effectImages

s32 BattleScript::effectImages

FIGHTSTG_findEffectSheet's.

Definition at line 164 of file effect.h.

Referenced by FIGHTSTG_runScriptEffect().

◆ effectSheet

s32 BattleScript::effectSheet

Definition at line 165 of file effect.h.

Referenced by FIGHTSTG_runScriptEffect().

◆ effectTexPos

Vec2 BattleScript::effectTexPos

Definition at line 166 of file effect.h.

Referenced by FIGHTSTG_runScriptEffect().


The documentation for this struct was generated from the following file: