Dragonfly 4.20
A text-based game engine
EventKeyboardNetwork.h
1///
2/// A "keyboard" event over the network.
3///
4
5#ifndef NO_NETWORK
6
7#ifndef __EVENT_KEYBOARD_NETWORK_H__
8#define __EVENT_KEYBOARD_NETWORK_H__
9
10// Engine includes.
11#include "EventKeyboard.h"
12
13namespace df {
14
15const std::string NETWORK_KEYBOARD_EVENT = "df-keyboard-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_KEYBOARD_NETWORK_H__
34
35#endif // NO_NETWORK
Definition: EventKeyboardNetwork.h:17
Definition: EventKeyboard.h:38
An animation for a sprite.
Definition: Animation.h:15