|
Cavestory Mod API
|
Functions | |
| CAVESTORY_MOD_API void | SetPlayerState (SafeClientInterface *pInterface, int iStateType=-1, bool bForce=false) |
| Set the state of an interface. More... | |
| CAVESTORY_MOD_API int | GetPlayerState (SafeClientInterface *pInterface) |
| Get the current playerstate of an interface. More... | |
| bool | IsPlayerState (MYCHAR *pChar, int iStateType) |
| Check to see if a player is in the specified state. More... | |
| CAVESTORY_MOD_API unsigned int | GetPlayerStateFlags (MYCHAR *pChar) |
| Get the flags for a player's state. More... | |
| CAVESTORY_MOD_API PlayerStateAnimator_OutputType | GetPlayerStateAnimatorType (MYCHAR *pChar) |
| Get the return type of a player's state's animate function. More... | |
| CAVESTORY_MOD_API unsigned int | GetPlayerStateFlagsFromCarrier (MYCHAR *pChar) |
| Get the flags from a player's carrier's playerstate. More... | |
| CAVESTORY_MOD_API int | FindPlayerStateByName (const char *pName) |
| Find a player state by its name. More... | |
| CAVESTORY_MOD_API int | GetStateByUnitIndex (int iUnitIndex) |
| Transform a unit index into a player state index. More... | |
| CAVESTORY_MOD_API int | GetUnitIndexByState (int iPlayerState) |
| Transform a player state index into a unit index. More... | |
| CAVESTORY_MOD_API int FindPlayerStateByName | ( | const char * | pName | ) |
Find a player state by its name.
| pName | The name of the state. |
| CAVESTORY_MOD_API int GetPlayerState | ( | SafeClientInterface * | pInterface | ) |
Get the current playerstate of an interface.
| pInterface | The interface to get the state from. |
| CAVESTORY_MOD_API PlayerStateAnimator_OutputType GetPlayerStateAnimatorType | ( | MYCHAR * | pChar | ) |
Get the return type of a player's state's animate function.
| pChar | The player to get the state from. |
| CAVESTORY_MOD_API unsigned int GetPlayerStateFlags | ( | MYCHAR * | pChar | ) |
Get the flags for a player's state.
| pChar | The player to get the state from. |
| CAVESTORY_MOD_API unsigned int GetPlayerStateFlagsFromCarrier | ( | MYCHAR * | pChar | ) |
Get the flags from a player's carrier's playerstate.
| pChar | The player to get the carrier from. |
| CAVESTORY_MOD_API int GetStateByUnitIndex | ( | int | iUnitIndex | ) |
Transform a unit index into a player state index.
| iUnitIndex | The unit index to transform. |
| CAVESTORY_MOD_API int GetUnitIndexByState | ( | int | iPlayerState | ) |
Transform a player state index into a unit index.
| iPlayerState | The player state to transform. |
|
inline |
Check to see if a player is in the specified state.
| pChar | The character to check for. |
| iStateType | The state to check. |
| CAVESTORY_MOD_API void SetPlayerState | ( | SafeClientInterface * | pInterface, |
| int | iStateType = -1, |
||
| bool | bForce = false |
||
| ) |
Set the state of an interface.
| pInterface | The interface to apply the state to. |
| iStateType | The type of state to set the player to. Find this in the 'PlayerStates' namespace. |
| bForce | Force set the state, regardless of whether the given interface is already set to the given state type. |