Dragonfly 4.20
A text-based game engine
EventNetworkSync.h
1//
2// EventNetworkSync.h
3//
4// Generated when an Object has been SYNCED in response
5// to an EventNetwork message.
6//
7
8#ifndef NO_NETWORK
9
10#ifndef __EVENT_NETWORK_SYNC_H__
11#define __EVENT_NETWORK_SYNC_H__
12
13// Engine includes.
14#include "EventNetwork.h"
15#include "Object.h"
16
17namespace df {
18
19const std::string NETWORK_SYNC_EVENT = "df-network-sync";
20
22
23 private:
24 Object *m_p_o; // Object synchronized.
25
26 public:
27 // Constructor must provide Object.
28 EventNetworkSync(NetworkEventLabel label, Object *p_o);
29
30 // Set Object.
31 void setObject(Object *p_new_o);
32
33 // Get Object.
34 Object *getObject() const;
35};
36
37} // end of namespace df
38
39#endif // __EVENT_NETWORK_SYNC_H__
40
41#endif // NO_NETWORK
Definition: EventNetworkSync.h:21
Definition: EventNetwork.h:24
Definition: Object.h:57
An animation for a sprite.
Definition: Animation.h:15