Melee Modding Library  2.0.0
A C library for modding Super Smash Bros Melee
Data Structures | Macros | Variables
moves.h File Reference

Common input sequences. More...

#include "gctypes.h"
#include "controller.h"

Go to the source code of this file.

Data Structures

struct  RawInput
 represent an input in its minimal form More...
 
struct  Move
 Represents a single move (string of timed inputs) More...
 

Macros

#define SET_TECH_DIR(x)
 
#define SET_HIT_DI_DIR(x)
 
#define SET_THROW_DI_DIR(x)
 
#define SET_UP_B_DIR(x)
 
#define SET_SIDE_B_DIR(x)
 
#define SET_DJ_DIR(x)
 
#define SET_LEDGEDASH_ANGLE(x)
 
#define SET_HOLD_DIR(x)
 
#define SET_WAVEDASH_DIR(x)
 
#define NO_FLAGS   0
 
#define JUMPSQUAT   (1 << 0)
 
#define SH_LENGTH   (1 << 1)
 
#define LEDGEDASH   (1 << 2)
 
#define RESET_STICK_COUNTER   (1 << 3)
 
#define RELEASE   0x0000
 
#define OVERWRITE   0
 
#define STICK_ANGLE(x)   ((((u8) (((x) / 360.f) * 255.f)) << 8) & 0xFF00)
 

Variables

Move _mv_shNeutralB
 
Move _mv_shortHop
 
Move _mv_tech
 
Move _mv_spotDodge
 
Move _mv_getUpAttack
 
Move _mv_jab
 
Move _mv_hitDI
 
Move _mv_throwDI
 
Move _mv_upB
 
Move _mv_sideB
 
Move _mv_downB
 
Move _mv_wavedash
 
Move _mv_doubleJump
 
Move _mv_holdDirection
 
Move _mv_ledgeDash
 

Detailed Description

Common input sequences.


Data Structure Documentation

struct RawInput

represent an input in its minimal form

Data Fields
u16 controller

controller state

s8 frameOffset

frame offset

u8 flags

input flags

struct Move

Represents a single move (string of timed inputs)

Data Fields
RawInput * inputs

input array

u32 size

size of array

Macro Definition Documentation

#define NO_FLAGS   0

Input Flags

#define JUMPSQUAT   (1 << 0)

Input Flags

#define SH_LENGTH   (1 << 1)

Input Flags

#define LEDGEDASH   (1 << 2)

Input Flags

#define RESET_STICK_COUNTER   (1 << 3)

Input Flags

#define RELEASE   0x0000

Controller State Macros

#define OVERWRITE   0

Controller State Macros

#define STICK_ANGLE (   x)    ((((u8) (((x) / 360.f) * 255.f)) << 8) & 0xFF00)

Controller State Macros

#define SET_TECH_DIR (   x)
Value:
_raw_tech[0].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define L_BUTTON
Definition: controller.h:25
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set tech direction

#define SET_HIT_DI_DIR (   x)
Value:
_raw_hitDI[0].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set the direction of DI for normal hits

#define SET_THROW_DI_DIR (   x)
Value:
_raw_holdDirection[0].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set the direction of DI for throws

#define SET_UP_B_DIR (   x)
Value:
_raw_upB[1].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set the direction for the Up B

#define SET_SIDE_B_DIR (   x)
Value:
_raw_sideB[0].controller = \
#define B_BUTTON
Definition: controller.h:22
#define STICK_ANGLE(x)
Definition: moves.h:43
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set the direction for the side B

#define SET_DJ_DIR (   x)
Value:
_raw_doubleJump[0].controller = \
#define X_BUTTON
Definition: controller.h:23
#define STICK_ANGLE(x)
Definition: moves.h:43
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set the direction for the double jump

#define SET_LEDGEDASH_ANGLE (   x)
Value:
_raw_ledgeDash[2].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define L_BUTTON
Definition: controller.h:25
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set angle for ledge dash

#define SET_HOLD_DIR (   x)
Value:
_raw_holdDirection[0].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set the direction of the control stick

#define SET_WAVEDASH_DIR (   x)
Value:
_raw_wavedash[1].controller = \
#define STICK_ANGLE(x)
Definition: moves.h:43
#define L_BUTTON
Definition: controller.h:25
#define FULL_STICK
Definition: controller.h:37
u16 controller
Definition: moves.h:16

Set direction of wavedash

Variable Documentation

Move _mv_shNeutralB

Short Hop Neutral B.

Move _mv_shortHop

Short Hop

Move _mv_tech

Hit standard tech

Move _mv_spotDodge

Spot Dodge

Move _mv_getUpAttack

Get Up Attack

Move _mv_jab

Jab

Move _mv_hitDI

DI from hit

Move _mv_sideB

Side B

Move _mv_downB

Down B

Move _mv_wavedash

Wavedash at an angle

Move _mv_doubleJump

DJ towards direction

Note
INDEFINITE
Move _mv_ledgeDash

Ledgedash