SSBM Decomp
Loading...
Searching...
No Matches
ftcmdscript.h
Go to the documentation of this file.
1#ifndef MELEE_FT_CMDSCRIPT_H
2#define MELEE_FT_CMDSCRIPT_H
3
4#include <melee/ft/forward.h>
5
6typedef enum CPUCommand {
7 // These commands press or release buttons
33
34 // Signifies the end of a command sequence
36
37#ifndef M2CTX
39#endif
40
41 // These commands set analog stick/trigger values
48
49 // These commands press/release a button and wait a specified duration
59
63
66
69
71
75
78
81
82#ifdef M2CTX
83typedef CPUCommand cmd_t;
84typedef s8 arg_t;
85#else
86typedef u8 cmd_t;
87typedef u8 arg_t;
88#endif
89
90/* 0B3E04 */ void ftCo_800B3E04(Fighter*);
91/* 0B463C */ void ftCo_800B463C(Fighter*, cmd_t cmd);
92/* 0B46B8 */ void ftCo_800B46B8(Fighter*, cmd_t cmd, arg_t arg);
93/* 0B462C */ void ftCo_800B462C(Fighter*);
94/* 0B4778 */ void ftCo_800B4778(Fighter*, cmd_t cmd, arg_t arg1, arg_t arg2);
95/* 0B4880 */ void ftCo_800B4880(Fighter*, int script_idx);
96/* 0B49F4 */ void ftCo_800B49F4(Fighter*);
97/* 0B4A78 */ void ftCo_800B4A78(Fighter*);
98
99#endif
void ftCo_800B4A78(Fighter *)
Definition ftcmdscript.c:383
void ftCo_800B4778(Fighter *, cmd_t cmd, arg_t arg1, arg_t arg2)
Definition ftcmdscript.c:345
u8 cmd_t
Definition ftcmdscript.h:86
CPUCommand
Definition ftcmdscript.h:6
@ CpuCmd_PressLeft
Definition ftcmdscript.h:28
@ CpuCmd_LstickXTowardDestinationClamped
Definition ftcmdscript.h:73
@ CpuCmd_PressA
Definition ftcmdscript.h:8
@ CpuCmd_ReleaseBFor
Definition ftcmdscript.h:53
@ CpuCmd_LstickTowardFighter
Definition ftcmdscript.h:67
@ CpuCmd_ReleaseUp
Definition ftcmdscript.h:23
@ CpuCmd_PressDown
Definition ftcmdscript.h:24
@ CpuCmd_PressL
Definition ftcmdscript.h:18
@ CpuCmd_PressXFor
Definition ftcmdscript.h:54
@ CpuCmd_Unk0x93
Set scenario ID?
Definition ftcmdscript.h:65
@ CpuCmd_ReleaseRight
Definition ftcmdscript.h:27
@ CpuCmd_PressRight
Definition ftcmdscript.h:26
@ CpuCmd_LstickXTowardFighter
Definition ftcmdscript.h:68
@ CpuCmd_SetCstickY
Definition ftcmdscript.h:45
@ CpuCmd_SetCstickX
Definition ftcmdscript.h:44
@ CpuCmd_PressUp
Definition ftcmdscript.h:22
@ CpuCmd_PressAFor
Definition ftcmdscript.h:50
@ CpuCmd_SetLstickX
Definition ftcmdscript.h:42
@ CpuCmd_Done
Definition ftcmdscript.h:35
@ CpuCmd_LstickForwardClamped
Definition ftcmdscript.h:74
@ CpuCmd_ReleaseLeft
Definition ftcmdscript.h:29
@ CpuCmd_ReleaseY
Definition ftcmdscript.h:15
@ CpuCmd_PressBFor
Definition ftcmdscript.h:52
@ CpuCmd_ReleaseYFor
Definition ftcmdscript.h:57
@ CpuCmd_SetLtrigger
Definition ftcmdscript.h:47
@ CpuCmd_WaitIfMotionId
Definition ftcmdscript.h:64
@ CpuCmd_ZeroArgEnd
Previous commands take zero arguments.
Definition ftcmdscript.h:38
@ CpuCmd_PressStart
Definition ftcmdscript.h:30
@ CpuCmd_ReleaseDown
Definition ftcmdscript.h:25
@ CpuCmd_SetRtrigger
Definition ftcmdscript.h:46
@ CpuCmd_PressR
Definition ftcmdscript.h:16
@ CpuCmd_LstickXForward
Definition ftcmdscript.h:62
@ CpuCmd_OneArgEnd
Previous commands take one argument.
Definition ftcmdscript.h:70
@ CpuCmd_ReleaseX
Definition ftcmdscript.h:13
@ CpuCmd_PressB
Definition ftcmdscript.h:10
@ CpuCmd_ReleaseXFor
Definition ftcmdscript.h:55
@ CpuCmd_ReleaseB
Definition ftcmdscript.h:11
@ CpuCmd_Count
Definition ftcmdscript.h:76
@ CpuCmd_ReleaseR
Definition ftcmdscript.h:17
@ CpuCmd_ReleaseL
Definition ftcmdscript.h:19
@ CpuCmd_ReleaseZ
Definition ftcmdscript.h:21
@ CpuCmd_ReleaseAFor
Definition ftcmdscript.h:51
@ CpuCmd_ReleaseAll
Definition ftcmdscript.h:32
@ CpuCmd_LstickXTowardDestination
Definition ftcmdscript.h:61
@ CpuCmd_WaitFor
Definition ftcmdscript.h:58
@ CpuCmd_LstickTowardDestination
Definition ftcmdscript.h:60
@ CpuCmd_ReleaseA
Definition ftcmdscript.h:9
@ CpuCmd_SetLstickY
Definition ftcmdscript.h:43
@ CpuCmd_PressY
Definition ftcmdscript.h:14
@ CpuCmd_PressX
Definition ftcmdscript.h:12
@ CpuCmd_PressZ
Definition ftcmdscript.h:20
@ CpuCmd_PressYFor
Definition ftcmdscript.h:56
@ CpuCmd_ReleaseStart
Definition ftcmdscript.h:31
@ CpuCmd_LstickTowardDestinationClamped
Definition ftcmdscript.h:72
void ftCo_800B3E04(Fighter *)
Run any pending CPU commands.
Definition ftcmdscript.c:12
void ftCo_800B46B8(Fighter *, cmd_t cmd, arg_t arg)
Definition ftcmdscript.c:339
void ftCo_800B462C(Fighter *)
Resets the write position to the start of the script buffer area.
Definition ftcmdscript.c:322
void ftCo_800B4880(Fighter *, int script_idx)
Runs an existing command script from a table loaded from .dat.
Definition ftcmdscript.c:355
u8 arg_t
Definition ftcmdscript.h:87
void ftCo_800B49F4(Fighter *)
Definition ftcmdscript.c:373
void ftCo_800B463C(Fighter *, cmd_t cmd)
Writes a command to the current location in the script buffer area.
Definition ftcmdscript.c:329
#define U8_MAX
Definition platform.h:87
#define STATIC_ASSERT(cond)
Definition platform.h:110
Definition types.h:1106