Dragonfly 4.20
A text-based game engine
EventMouseNetwork.h
1///
2/// A "mouse" event over the network.
3///
4
5#ifndef NO_NETWORK
6
7#ifndef __EVENT_MOUSE_NETWORK_H__
8#define __EVENT_MOUSE_NETWORK_H__
9
10// Engine includes.
11#include "EventMouse.h"
12
13namespace df {
14
15const std::string NETWORK_MSE_EVENT = "df-mouse-network";
16
18
19 private:
20 int m_socket_index; // Socket index of connection.
21
22 public:
24
25 // Set socket index.
26 void setSocketIndex(int new_socket_index);
27
28 // Get socket index.
29 int getSocketIndex() const;
30};
31
32} // end of namespace df
33#endif // __EVENT_MOUSE_H_NETWORK__
34
35#endif // NO_NETWORK
36
Definition: EventMouseNetwork.h:17
Definition: EventMouse.h:33
An animation for a sprite.
Definition: Animation.h:15