forked from bfbbdecomp/bfbb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxBehaveGoalSimple.h
More file actions
58 lines (47 loc) · 1.32 KB
/
xBehaveGoalSimple.h
File metadata and controls
58 lines (47 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef XBEHAVEGOALSIMPLE_H
#define XBEHAVEGOALSIMPLE_H
#include "xFactory.h"
#include "xRMemData.h"
#include "xBehaviour.h"
struct xGoalEmpty : xGoal
{
xGoalEmpty(S32 goalID) : xGoal(goalID)
{
}
virtual const char* Name()
{
return "xGoalEmpty";
}
virtual void Clear()
{
}
};
struct xGoalGeneric : xGoal
{
S32 (*fun_enter)(xGoal*, void*, F32, void*);
S32 (*fun_exit)(xGoal*, void*, F32, void*);
S32 (*fun_suspend)(xGoal*, void*, F32, void*);
S32 (*fun_resume)(xGoal*, void*, F32, void*);
S32 (*fun_sysevent)(xGoal*, void*, xBase*, xBase*, U32, const F32*, xBase*, S32*);
void* usrData;
xGoalGeneric(S32 goalID) : xGoal(goalID)
{
}
virtual const char* Name()
{
return "xGoalGeneric";
}
virtual void Clear()
{
}
virtual S32 Enter(F32 dt, void* updCtxt);
virtual S32 Exit(F32 dt, void* updCtxt);
virtual S32 Suspend(F32 dt, void* updCtxt);
virtual S32 Resume(F32 dt, void* updCtxt);
virtual S32 SysEvent(xBase* from, xBase* to, U32 toEvent, const F32* toParam,
xBase* toParamWidget, S32* handled);
};
void xGoalSimple_RegisterTypes(xFactory* fac);
static xFactoryInst* GOALCreate_Generic(S32 who, RyzMemGrow* growCtxt, void* dat);
static void GOALDestroy_Generic(xFactoryInst* item);
#endif