Dragonfly
4.20
A text-based game engine
v4.20
include
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
13
namespace
df
{
14
15
const
std::string NETWORK_KEYBOARD_EVENT =
"df-keyboard-network"
;
16
17
class
EventKeyboardNetwork
:
public
EventKeyboard
{
18
19
private
:
20
int
m_socket_index;
// Socket index of connection.
21
22
public
:
23
EventKeyboardNetwork
();
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
df::EventKeyboardNetwork
Definition:
EventKeyboardNetwork.h:17
df::EventKeyboard
Definition:
EventKeyboard.h:38
df
An animation for a sprite.
Definition:
Animation.h:15
Generated by
1.9.4