Isle
Loading...
Searching...
No Matches
mxnotificationparam.h
Go to the documentation of this file.
1#ifndef MXNOTIFICATIONPARAM_H
2#define MXNOTIFICATIONPARAM_H
3
4#include "compat.h"
5#include "mxparam.h"
6#include "mxtypes.h"
7
8class MxCore;
9
39};
40
48public:
51
55 MxNotificationParam(NotificationId p_type, MxCore* p_sender) : MxParam(), m_type(p_type), m_sender(p_sender) {}
56
60 virtual MxNotificationParam* Clone() const { return new MxNotificationParam(m_type, m_sender); } // vtable+0x04
61
65
68 MxCore* GetSender() const { return m_sender; }
69
72 void SetNotification(NotificationId p_type) { m_type = p_type; }
73
76 void SetSender(MxCore* p_sender) { m_sender = p_sender; }
77
78protected:
81};
82
83// SYNTHETIC: LEGO1 0x10010430
84// SYNTHETIC: BETA10 0x100136c0
85// MxNotificationParam::`scalar deleting destructor'
86
87// SYNTHETIC: LEGO1 0x100104a0
88// SYNTHETIC: BETA10 0x10013740
89// MxNotificationParam::~MxNotificationParam
90
91#endif // MXNOTIFICATIONPARAM_H
[AI] Base virtual class for all Mindscape engine (Mx) objects.
Definition: mxcore.h:15
[AI] Parameter object representing a single notification or event, carrying an identifier and sender ...
MxNotificationParam()
[AI] Constructs a default notification parameter with type c_notificationType0 and no sender.
NotificationId GetNotification() const
[AI] Retrieves the current notification type of this parameter.
MxCore * GetSender() const
[AI] Retrieves the sender pointer associated with this notification.
MxCore * m_sender
[AI] Pointer to the MxCore instance that sent or originated this notification.
void SetSender(MxCore *p_sender)
[AI] Sets the sender pointer for this notification parameter.
MxNotificationParam(NotificationId p_type, MxCore *p_sender)
[AI] Constructs a notification parameter with a specific type and sender.
virtual MxNotificationParam * Clone() const
[AI] Creates a copy of this notification parameter object on the heap.
void SetNotification(NotificationId p_type)
[AI] Sets the notification type for this parameter object.
NotificationId m_type
[AI] Type of notification/event carried by this object (see NotificationId).
[AI] MxParam serves as a polymorphic base class for parameter passing in event and notification syste...
Definition: mxparam.h:7
#define NULL
[AI] Null pointer value (C/C++ semantics).
Definition: legotypes.h:26
NotificationId
Several of those should be defined in LegoOmni.
@ c_notificationTimer
[AI] Timer-related event [AI]
@ c_notificationDragEnd
[AI] End of drag event [AI]
@ c_notificationType20
[AI] Unspecified notification type [AI]
@ c_notificationType22
[AI] Unspecified notification type [AI]
@ c_notificationControl
[AI] UI control event [AI]
@ c_notificationStreamer
[AI] Event related to a Streamer [AI]
@ c_notificationPresenter
[AI] Update or event from a Presenter [AI]
@ c_notificationButtonUp
[AI] Mouse/gamepad button release [AI]
@ c_notificationButtonDown
[AI] Mouse/gamepad button press [AI]
@ c_notificationEndAnim
[AI] End of an animation [AI]
@ c_notificationDragStart
[AI] Start of a drag event (mouse/touch) [AI]
@ c_notificationType23
[AI] Unspecified notification type [AI]
@ c_notificationStartAction
[AI] Indicates the start of an action [AI]
@ c_notificationDrag
[AI] Ongoing drag/move event [AI]
@ c_notificationMouseMove
[AI] Mouse movement event [AI]
@ c_notificationKeyPress
[AI] Keyboard key press detected [AI]
@ c_notificationTransitioned
[AI] Object has transitioned states or locations [AI]
@ c_notificationType4
[AI] Unspecified notification type [AI]
@ c_notificationType0
[AI] Undefined/Generic notification type [AI]
@ c_notificationNewPresenter
[AI] Notification about a new Presenter object [AI]
@ c_notificationEndAction
[AI] Indicates the end of an action [AI]
@ c_notificationClick
[AI] Mouse click event [AI]
@ c_notificationPathStruct
[AI] Data related to a path structure [AI]