Implement m_player, add skeletons for player c_inc files

This commit is contained in:
Cuyler36
2024-08-16 16:08:22 -04:00
parent d2d6474589
commit c4dea06039
141 changed files with 1420 additions and 17 deletions
+1351
View File
File diff suppressed because it is too large Load Diff
+10 -8
View File
@@ -4,10 +4,12 @@
#include "m_name_table.h"
#include "m_play.h"
mActor_proc Player_actor_ct_func;
mActor_proc Player_actor_dt_func;
mActor_proc Player_actor_move_func;
mActor_proc Player_actor_draw_func;
typedef void (*PLAYER_ACTOR_PROC)(PLAYER_ACTOR*, GAME*);
PLAYER_ACTOR_PROC Player_actor_ct_func;
PLAYER_ACTOR_PROC Player_actor_dt_func;
PLAYER_ACTOR_PROC Player_actor_move_func;
PLAYER_ACTOR_PROC Player_actor_draw_func;
void Player_actor_ct_call(ACTOR* actor, GAME* game);
void Player_actor_dt_call(ACTOR* actor, GAME* game);
@@ -43,26 +45,26 @@ static void Player_actor_ct_call(ACTOR* actor, GAME* game) {
load_player(&play->submenu);
initfunc(play);
Player_actor_ct_func(actor, game);
Player_actor_ct_func((PLAYER_ACTOR*)actor, game);
}
static void Player_actor_dt_call(ACTOR* actor, GAME* game) {
GAME_PLAY* play = (GAME_PLAY*)game;
load_player(&play->submenu);
Player_actor_dt_func(actor, game);
Player_actor_dt_func((PLAYER_ACTOR*)actor, game);
}
static void Player_actor_move_call(ACTOR* actor, GAME* game) {
GAME_PLAY* play = (GAME_PLAY*)game;
load_player(&play->submenu);
Player_actor_move_func(actor, game);
Player_actor_move_func((PLAYER_ACTOR*)actor, game);
}
static void Player_actor_draw_call(ACTOR* actor, GAME* game) {
GAME_PLAY* play = (GAME_PLAY*)game;
load_player(&play->submenu);
Player_actor_draw_func(actor, game);
Player_actor_draw_func((PLAYER_ACTOR*)actor, game);
}
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File

Some files were not shown because too many files have changed in this diff Show More