Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
f_pc_manager.h
Go to the documentation of this file.
1#ifndef F_PC_MANAGER_H_
2#define F_PC_MANAGER_H_
3
6#include "f_pc/f_pc_leaf.h"
7#include "f_pc/f_pc_node.h"
10
11enum {
12 fpcM_ERROR_PROCESS_ID_e = 0xFFFFFFFF
13};
14
15typedef int (*FastCreateReqFunc)(void*);
17typedef int (*fpcM_DrawIteraterFunc)(void*, void*);
18
22
23inline s16 fpcM_GetName(const void* i_process) {
24 return ((base_process_class*)i_process)->name;
25}
26
27inline u32 fpcM_GetParam(const void* i_process) {
28 return ((base_process_class*)i_process)->parameters;
29}
30
31inline void fpcM_SetParam(void* i_process, u32 param) {
32 ((base_process_class*)i_process)->parameters = param;
33}
34
35inline s16 fpcM_GetProfName(const void* i_process) {
36 return ((base_process_class*)i_process)->profname;
37}
38
43
44inline s16 fpcM_DrawPriority(const void* i_process) {
46}
47
49 return fpcPi_Change(&((base_process_class*)i_process)->priority, i_layerID, 0xFFFD, 0xFFFD);
50}
51
55
56inline bool fpcM_IsFirstCreating(void* i_process) {
57 return ((base_process_class*)i_process)->init_state == 0;
58}
59
63
64inline void* fpcM_GetAppend(const void* i_process) {
65 return ((base_process_class*)i_process)->append;
66}
67
69 return fpcEx_IsExist(id);
70}
71
75
79
83
87
88void fpcM_Draw(void* i_process);
94void fpcM_Init();
96 void* i_createData, void* i_append);
101
102#endif
T cLib_calcTimer(T *value)
Definition c_lib.h:79
BOOL fpcBs_Is_JustOfType(int i_typeA, int i_typeB)
Definition f_pc_base.cpp:16
unsigned int fpc_ProcID
Definition f_pc_base.h:10
void *(* fpcCtIt_JudgeFunc)(void *, void *)
Definition f_pc_create_iter.h:10
base_process_class * fpcEx_Search(fpcLyIt_JudgeFunc i_judgeFunc, void *i_data)
Definition f_pc_executor.cpp:12
BOOL fpcEx_IsExist(fpc_ProcID i_id)
Definition f_pc_executor.cpp:25
base_process_class * fpcEx_SearchByID(fpc_ProcID i_id)
Definition f_pc_executor.cpp:17
layer_class * fpcLy_CurrentLayer()
Definition f_pc_layer.cpp:106
void * fpcLyIt_AllJudge(fpcLyIt_JudgeFunc i_func, void *i_data)
Definition f_pc_layer_iter.cpp:43
void * fpcLyIt_Judge(layer_class *i_layer, fpcLyIt_JudgeFunc i_func, void *i_data)
Definition f_pc_layer_iter.cpp:35
void *(* fpcLyIt_JudgeFunc)(void *, void *)
Definition f_pc_layer_iter.h:14
s16 fpcLf_GetPriority(const leafdraw_class *i_leaf)
Definition f_pc_leaf.cpp:9
fpc_ProcID fpcM_GetID(const void *i_process)
Definition f_pc_manager.h:19
void fpcM_Init()
Definition f_pc_manager.cpp:93
fpc_ProcID fpcM_Create(s16 i_procName, FastCreateReqFunc i_createFunc, void *i_append)
Definition f_pc_manager.h:39
process_profile_definition * fpcM_GetProfile(void *i_process)
Definition f_pc_manager.h:60
s32 fpcM_DrawIterater(fpcM_DrawIteraterFunc i_drawIterFunc)
Definition f_pc_manager.cpp:26
s32 fpcM_Delete(void *i_process)
Definition f_pc_manager.cpp:36
void(* fpcM_ManagementFunc)(void)
Definition f_pc_manager.h:16
s32 fpcM_ChangeLayerID(void *i_process, int i_layerID)
Definition f_pc_manager.h:48
s32 fpcM_IsPause(void *i_process, u8 i_flag)
Definition f_pc_manager.cpp:109
BOOL fpcM_IsCreating(fpc_ProcID i_id)
Definition f_pc_manager.cpp:41
s16 fpcM_DrawPriority(const void *i_process)
Definition f_pc_manager.h:44
void * fpcM_JudgeInLayer(fpc_ProcID i_layerID, fpcCtIt_JudgeFunc i_judgeFunc, void *i_data)
Definition f_pc_manager.cpp:124
void fpcM_Management(fpcM_ManagementFunc i_preExecuteFn, fpcM_ManagementFunc i_postExecuteFn)
Definition f_pc_manager.cpp:46
BOOL fpcM_IsJustType(int i_typeA, int i_typeB)
Definition f_pc_manager.h:52
void fpcM_PauseDisable(void *i_process, u8 i_flag)
Definition f_pc_manager.cpp:119
s16 fpcM_GetName(const void *i_process)
Definition f_pc_manager.h:23
void * fpcM_LyJudge(process_node_class *i_node, fpcLyIt_JudgeFunc i_func, void *i_data)
Definition f_pc_manager.h:72
int(* fpcM_DrawIteraterFunc)(void *, void *)
Definition f_pc_manager.h:17
@ fpcM_ERROR_PROCESS_ID_e
Definition f_pc_manager.h:12
void * fpcM_GetAppend(const void *i_process)
Definition f_pc_manager.h:64
BOOL fpcM_IsExecuting(fpc_ProcID id)
Definition f_pc_manager.h:68
base_process_class * fpcM_FastCreate(s16 i_procname, FastCreateReqFunc i_createReqFunc, void *i_createData, void *i_append)
Definition f_pc_manager.cpp:102
base_process_class * fpcM_SearchByName(s16 name)
Definition f_pc_manager.h:80
void fpcM_Draw(void *i_process)
Definition f_pc_manager.cpp:21
void fpcM_SetParam(void *i_process, u32 param)
Definition f_pc_manager.h:31
void fpcM_PauseEnable(void *i_process, u8 i_flag)
Definition f_pc_manager.cpp:114
base_process_class * fpcM_SearchByID(fpc_ProcID i_id)
Definition f_pc_manager.h:84
base_process_class * fpcM_Search(fpcLyIt_JudgeFunc i_func, void *i_data)
Definition f_pc_manager.h:76
int(* FastCreateReqFunc)(void *)
Definition f_pc_manager.h:15
u32 fpcM_GetParam(const void *i_process)
Definition f_pc_manager.h:27
bool fpcM_IsFirstCreating(void *i_process)
Definition f_pc_manager.h:56
s32 fpcM_Execute(void *i_process)
Definition f_pc_manager.cpp:31
s16 fpcM_GetProfName(const void *i_process)
Definition f_pc_manager.h:35
s32 fpcPi_Change(process_priority_class *i_procPriority, fpc_ProcID i_layerID, u16 i_listID, u16 i_priority)
Definition f_pc_priority.cpp:87
void * fpcSch_JudgeForPName(void *i_proc, void *i_data)
Definition f_pc_searcher.cpp:9
fpc_ProcID fpcSCtRq_Request(layer_class *i_layer, s16 i_procName, stdCreateFunc i_createFunc, void *param_4, void *i_append)
Definition f_pc_stdcreate_req.cpp:108
int(* stdCreateFunc)(void *, void *)
Definition f_pc_stdcreate_req.h:8
Definition f_pc_base.h:17
Definition f_pc_leaf.h:16
Definition f_pc_node.h:15
Definition f_pc_profile.h:11
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
signed short s16
Definition types.h:5
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8