Isle
Loading...
Searching...
No Matches
mxcore.h
Go to the documentation of this file.
1#ifndef MXCORE_H
2#define MXCORE_H
3
4#include "compat.h"
5#include "mxtypes.h"
6
7#include <string.h>
8
9class MxParam;
10
15class MxCore {
16public:
18 MxCore();
19
21 virtual ~MxCore(); // vtable+00
22
26 virtual MxLong Notify(MxParam& p_param); // vtable+04
27
31 virtual MxResult Tickle() { return SUCCESS; } // vtable+08
32
36 virtual const char* ClassName() const // vtable+0c
37 {
38 // STRING: LEGO1 0x100f007c
39 return "MxCore";
40 }
41
46 virtual MxBool IsA(const char* p_name) const // vtable+10
47 {
48 return !strcmp(p_name, MxCore::ClassName());
49 }
50
52 MxU32 GetId() { return m_id; }
53
54 // SYNTHETIC: LEGO1 0x100ae1c0
55 // SYNTHETIC: BETA10 0x1012c0d0
56 // MxCore::`scalar deleting destructor'
57
58private:
61 static MxU32 g_nextCoreId;
62
64 MxU32 m_id; // 0x04
65};
66
67// SYNTHETIC: BETA10 0x10096940
68// MxCore::operator=
69
70#endif // MXCORE_H
[AI] Base virtual class for all Mindscape engine (Mx) objects.
Definition: mxcore.h:15
MxCore()
[AI] Constructs a new MxCore object and assigns it a unique id.
Definition: mxcore.cpp:11
virtual MxResult Tickle()
[AI] Called by tickle managers to allow the object to update itself.
Definition: mxcore.h:31
virtual const char * ClassName() const
[AI] Returns the runtime class name of this object.
Definition: mxcore.h:36
virtual MxBool IsA(const char *p_name) const
[AI] Checks whether this object's class type or parents match the given name.
Definition: mxcore.h:46
virtual ~MxCore()
[AI] Virtual destructor. Required for correct polymorphic cleanup in derived classes.
Definition: mxcore.cpp:19
virtual MxLong Notify(MxParam &p_param)
[AI] Virtual callback notification mechanism.
Definition: mxcore.cpp:25
MxU32 GetId()
[AI] Gets the unique (per-process) id assigned to this object instance.
Definition: mxcore.h:52
[AI] MxParam serves as a polymorphic base class for parameter passing in event and notification syste...
Definition: mxparam.h:7
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
Definition: legotypes.h:30
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106
int MxLong
[AI]
Definition: mxtypes.h:83
unsigned int MxU32
[AI]
Definition: mxtypes.h:32