Dragonfly 4.20
A text-based game engine
EventNetworkCustom.h
1///
2// EventNetworkCustom.h
3//
4// Generated when a CUSTOM data message has been received
5// and handled by an EventNetwork message.
6///
7
8#ifndef NO_NETWORK
9
10#ifndef __EVENT_CUSTOM_NETWORK_H__
11#define __EVENT_CUSTOM_NETWORK_H__
12
13// Engine includes.
14#include "EventNetwork.h"
15
16namespace df {
17
18const std::string NETWORK_CUSTOM_EVENT = "df-custom-network";
19
21
22 private:
23 const void *m_p_message;
24
25 public:
26
27 // Constructor (with label).
28 EventNetworkCustom(NetworkEventLabel label);
29
30 // Set message.
31 void setMessage(const void *new_message);
32
33 // Get message.
34 const void *getMessage() const;
35};
36
37} // end of namespace df
38#endif // __EVENT_CUSTOM_H_NETWORK__
39
40#endif
Definition: EventNetworkCustom.h:20
Definition: EventNetwork.h:24
An animation for a sprite.
Definition: Animation.h:15