Cavestory Mod API
|
Player character object. More...
#include <CSMAPI_types.h>
Public Attributes | |
CustomPlayer * | character |
Custom player character. | |
unsigned short | cond |
Condition. | |
bool | init_state |
Initialize state. | |
bool | free_state |
Free state. | |
unsigned int | flag |
Flags. | |
unsigned int | next_flag |
Next frame flags. | |
int | direct |
Direction. More... | |
int | npc_control |
NPC Control. | |
int | up |
Is facing up? | |
int | down |
Is facing down? | |
int | netanim |
Animation index. | |
int | equip |
Current equip flags. | |
int | x |
X Position. | |
int | y |
Y Position. | |
int | tgt_x |
X Target Position. | |
int | tgt_y |
Y Target Position. | |
int | draw_offset_x |
Draw offset. | |
int | draw_offset_y |
Draw offset. | |
int | index_x |
Index X. | |
int | index_y |
Index Y. | |
int | xm |
X Motion. | |
int | ym |
Y Motion. | |
int | old_xm |
Old X motion (before HitMyCharMap was called) | |
int | old_ym |
Old Y motion (before HitMyCharMap was called) | |
int | ani_wait |
Animation wait counter. | |
int | ani_no |
Animation number. | |
int | act_no |
Act number. | |
int | act_wait |
Act wait. | |
int | count1 |
Count1. | |
int | count2 |
Count2. | |
int | count3 |
Count3. | |
int | count4 |
Count4. | |
RECT | hit |
Hit rect. | |
RECT | view |
View rect. | |
RECT | rect |
Sprite rect. | |
RECT | rect_arms |
Arms sprite rect. | |
int | level |
HUD stuff. | |
int | exp_wait |
HUD stuff. | |
int | exp_count |
HUD stuff. | |
unsigned char | shock |
Shock. More... | |
bool | dont_flash_shock |
Flash shock. More... | |
unsigned char | no_life |
? | |
unsigned char | rensha |
Weapon rensha. | |
unsigned char | bubble |
Bubble. | |
bool | ignore_water |
If set to 'true', then this player cannot drown. | |
short | life |
Current health. | |
short | star |
How many stars we have revolving around us. More... | |
short | max_life |
Max health. | |
short | a |
a | |
int | lifeBr |
HUD stuff. | |
int | lifeBr_count |
HUD stuff. | |
int | air |
How much air we have. More... | |
int | air_get |
How much air we're getting. | |
signed char | sprash |
HUD stuff. | |
signed char | ques |
HUD stuff. | |
signed char | boost_sw |
HUD stuff. | |
int | boost_cnt |
Booster amount left. | |
int | boost_max |
Booster max amount. | |
unsigned char | col_r |
Red value for the color of their character. | |
unsigned char | col_g |
Green value for the color of their character. | |
unsigned char | col_b |
Blue value for the color of their character. | |
bool | use_char_color |
Whether to use the custom color or not. | |
int | zone |
Which zone this character is in. | |
MYCHAR_PHYSICS | physics_normal |
Normal physics. | |
MYCHAR_PHYSICS | physics_underwater |
Underwater physics. | |
int | built_xm |
Built xm. | |
int | built_ym |
Built ym. | |
NPCHAR * | pNpc |
Pointer NPC. | |
CaveNet::DataStructures::NetClient * | pOtherClient |
Other player. | |
CaveNet::DataStructures::NetClient * | pClient |
This client (redundant, used for GameSnapshot system) | |
MYCHAR * | pOther |
Other player. | |
CUSTOM_PLAYER_ANIMATION_INFO | anim_info |
The animation info for this player. | |
CUSTOM_OBJECT | obj |
Custom object. | |
Player character object.
int MYCHAR::air |
How much air we have.
Maximum value is 1000
int MYCHAR::direct |
bool MYCHAR::dont_flash_shock |
Flash shock.
If set to true, it will be set to 'false' when 'shock' equals 0.
unsigned char MYCHAR::shock |
Shock.
Set when the player is damaged, decreases with every frame.
Used for invincible frames
short MYCHAR::star |
How many stars we have revolving around us.
Max is 3