Isle
Loading...
Searching...
No Matches
buildingentity.cpp
Go to the documentation of this file.
1#include "buildingentity.h"
2
3#include "mxmisc.h"
6
8
9// FUNCTION: LEGO1 0x10014e20
11{
13}
14
15// FUNCTION: LEGO1 0x10015030
17{
19}
20
21// FUNCTION: LEGO1 0x100150a0
22// FUNCTION: BETA10 0x10024e37
24{
25 MxNotificationParam& param = (MxNotificationParam&) p_param;
26
27 if (param.GetNotification() == c_notificationClick) {
28 return HandleClick((LegoEventNotificationParam&) p_param);
29 }
30
31 return 0;
32}
[AI] Represents an entity corresponding to a building within the LEGO Island game world.
MxLong Notify(MxParam &p_param) override
[AI] Handles notification parameters sent to this entity.
~BuildingEntity() override
[AI] Destroys the BuildingEntity and unregisters it from notification events. [AI]
virtual MxLong HandleClick(LegoEventNotificationParam &p_param)=0
[AI] Abstract method called when this building entity receives a click notification.
Notification parameter class for LEGO event notifications such as mouse events and modifier keys.
void Unregister(MxCore *p_listener)
[AI] Removes a previously registered listener and flushes any pending notifications for it.
void Register(MxCore *p_listener)
[AI] Registers a listener object to receive notifications.
[AI] Parameter object representing a single notification or event, carrying an identifier and sender ...
NotificationId GetNotification() const
[AI] Retrieves the current notification type of this parameter.
[AI] MxParam serves as a polymorphic base class for parameter passing in event and notification syste...
Definition: mxparam.h:7
#define DECOMP_SIZE_ASSERT(T, S)
Definition: decomp.h:19
MxNotificationManager * NotificationManager()
[AI] Returns the notification manager for system-wide state/update notifications.
Definition: mxmisc.cpp:17
@ c_notificationClick
[AI] Mouse click event [AI]
int MxLong
[AI]
Definition: mxtypes.h:83