SSBM Decomp
Loading...
Searching...
No Matches
ftcmdscript.h File Reference
#include <melee/ft/forward.h>

Go to the source code of this file.

Typedefs

typedef u8 cmd_t
 
typedef u8 arg_t
 

Enumerations

enum  CPUCommand {
  CpuCmd_PressA = 1 ,
  CpuCmd_ReleaseA ,
  CpuCmd_PressB ,
  CpuCmd_ReleaseB ,
  CpuCmd_PressX ,
  CpuCmd_ReleaseX ,
  CpuCmd_PressY ,
  CpuCmd_ReleaseY ,
  CpuCmd_PressR ,
  CpuCmd_ReleaseR ,
  CpuCmd_PressL ,
  CpuCmd_ReleaseL ,
  CpuCmd_PressZ ,
  CpuCmd_ReleaseZ ,
  CpuCmd_PressUp ,
  CpuCmd_ReleaseUp ,
  CpuCmd_PressDown ,
  CpuCmd_ReleaseDown ,
  CpuCmd_PressRight ,
  CpuCmd_ReleaseRight ,
  CpuCmd_PressLeft ,
  CpuCmd_ReleaseLeft ,
  CpuCmd_PressStart ,
  CpuCmd_ReleaseStart ,
  CpuCmd_ReleaseAll ,
  CpuCmd_Done = 0x7F ,
  CpuCmd_ZeroArgEnd = 0x7F ,
  CpuCmd_SetLstickX ,
  CpuCmd_SetLstickY ,
  CpuCmd_SetCstickX ,
  CpuCmd_SetCstickY ,
  CpuCmd_SetRtrigger ,
  CpuCmd_SetLtrigger ,
  CpuCmd_PressAFor ,
  CpuCmd_ReleaseAFor ,
  CpuCmd_PressBFor ,
  CpuCmd_ReleaseBFor ,
  CpuCmd_PressXFor ,
  CpuCmd_ReleaseXFor ,
  CpuCmd_PressYFor ,
  CpuCmd_ReleaseYFor ,
  CpuCmd_WaitFor ,
  CpuCmd_LstickTowardDestination ,
  CpuCmd_LstickXTowardDestination ,
  CpuCmd_LstickXForward ,
  CpuCmd_WaitIfMotionId ,
  CpuCmd_Unk0x93 ,
  CpuCmd_LstickTowardFighter ,
  CpuCmd_LstickXTowardFighter ,
  CpuCmd_OneArgEnd = 0xBF ,
  CpuCmd_LstickTowardDestinationClamped ,
  CpuCmd_LstickXTowardDestinationClamped ,
  CpuCmd_LstickForwardClamped ,
  CpuCmd_Count
}
 

Functions

 STATIC_ASSERT (CpuCmd_Count<=U8_MAX)
 CPU commands must fit in a u8!
 
void ftCo_800B3E04 (Fighter *)
 Run any pending CPU commands.
 
void ftCo_800B463C (Fighter *, cmd_t cmd)
 Writes a command to the current location in the script buffer area.
 
void ftCo_800B46B8 (Fighter *, cmd_t cmd, arg_t arg)
 
void ftCo_800B462C (Fighter *)
 Resets the write position to the start of the script buffer area.
 
void ftCo_800B4778 (Fighter *, cmd_t cmd, arg_t arg1, arg_t arg2)
 
void ftCo_800B4880 (Fighter *, int script_idx)
 Runs an existing command script from a table loaded from .dat.
 
void ftCo_800B49F4 (Fighter *)
 
void ftCo_800B4A78 (Fighter *)
 

Typedef Documentation

◆ cmd_t

typedef u8 cmd_t

◆ arg_t

typedef u8 arg_t

Enumeration Type Documentation

◆ CPUCommand

enum CPUCommand
Enumerator
CpuCmd_PressA 
CpuCmd_ReleaseA 
CpuCmd_PressB 
CpuCmd_ReleaseB 
CpuCmd_PressX 
CpuCmd_ReleaseX 
CpuCmd_PressY 
CpuCmd_ReleaseY 
CpuCmd_PressR 
CpuCmd_ReleaseR 
CpuCmd_PressL 
CpuCmd_ReleaseL 
CpuCmd_PressZ 
CpuCmd_ReleaseZ 
CpuCmd_PressUp 
CpuCmd_ReleaseUp 
CpuCmd_PressDown 
CpuCmd_ReleaseDown 
CpuCmd_PressRight 
CpuCmd_ReleaseRight 
CpuCmd_PressLeft 
CpuCmd_ReleaseLeft 
CpuCmd_PressStart 
CpuCmd_ReleaseStart 
CpuCmd_ReleaseAll 
CpuCmd_Done 
CpuCmd_ZeroArgEnd 

Previous commands take zero arguments.

CpuCmd_SetLstickX 
CpuCmd_SetLstickY 
CpuCmd_SetCstickX 
CpuCmd_SetCstickY 
CpuCmd_SetRtrigger 
CpuCmd_SetLtrigger 
CpuCmd_PressAFor 
CpuCmd_ReleaseAFor 
CpuCmd_PressBFor 
CpuCmd_ReleaseBFor 
CpuCmd_PressXFor 
CpuCmd_ReleaseXFor 
CpuCmd_PressYFor 
CpuCmd_ReleaseYFor 
CpuCmd_WaitFor 
CpuCmd_LstickTowardDestination 
CpuCmd_LstickXTowardDestination 
CpuCmd_LstickXForward 
CpuCmd_WaitIfMotionId 
CpuCmd_Unk0x93 

Set scenario ID?

CpuCmd_LstickTowardFighter 
CpuCmd_LstickXTowardFighter 
CpuCmd_OneArgEnd 

Previous commands take one argument.

CpuCmd_LstickTowardDestinationClamped 
CpuCmd_LstickXTowardDestinationClamped 
CpuCmd_LstickForwardClamped 
CpuCmd_Count 

Function Documentation

◆ STATIC_ASSERT()

STATIC_ASSERT ( CpuCmd_Count<=  U8_MAX)

CPU commands must fit in a u8!

◆ ftCo_800B3E04()

void ftCo_800B3E04 ( Fighter fp)

Run any pending CPU commands.

◆ ftCo_800B463C()

void ftCo_800B463C ( Fighter fp,
cmd_t  cmd 
)

Writes a command to the current location in the script buffer area.

◆ ftCo_800B46B8()

void ftCo_800B46B8 ( Fighter fp,
cmd_t  cmd,
arg_t  arg 
)

◆ ftCo_800B462C()

void ftCo_800B462C ( Fighter fp)

Resets the write position to the start of the script buffer area.

◆ ftCo_800B4778()

void ftCo_800B4778 ( Fighter fp,
cmd_t  cmd,
arg_t  arg1,
arg_t  arg2 
)

◆ ftCo_800B4880()

void ftCo_800B4880 ( Fighter fp,
int  script_idx 
)

Runs an existing command script from a table loaded from .dat.

◆ ftCo_800B49F4()

void ftCo_800B49F4 ( Fighter fp)

◆ ftCo_800B4A78()

void ftCo_800B4A78 ( Fighter fp)