vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
AbilityMapper.h
Go to the documentation of this file.
1
#ifndef ABILITY_MAPPER_H
2
#define ABILITY_MAPPER_H
3
4
#include "
ControllableAbility.h
"
5
#include <
vrecko/EnvironmentObject.h
>
6
7
using namespace
vrecko;
8
9
namespace
APEditorController {
10
11
class
AbilityMapper
:
public
ControllableAbility
{
12
public
:
13
14
struct
BUTTON_MAPPING
{
15
int
pointerID
;
16
int
buttonID
;
17
std::string
mappedAbility
;
18
};
19
20
struct
MAPPING
{
21
std::vector<BUTTON_MAPPING>
vector
;
22
MAPPING
&
operator=
(
const
MAPPING
&rhs) {
23
vector.assign(rhs.
vector
.begin(), rhs.
vector
.end());
24
return
*
this
;
25
}
26
};
27
28
class
MessageMapping
:
public
VreckoMessage
{
29
public
:
30
virtual
const
char
*
getMessageId
() {
return
"MessageMapping"
; }
31
MAPPING
data
;
32
};
33
34
AbilityMapper
();
35
virtual
~
AbilityMapper
();
36
37
// virtual void processEvent(const std::string &strInputName, void *pValue);
38
39
protected
:
40
MAPPING
mapping
;
41
42
virtual
void
createInterface();
43
44
virtual
void
fillDefaultInfo();
45
virtual
bool
activate();
46
virtual
void
menuItemClicked(
const
char
* itemID);
47
48
void
sendNewMapping();
49
50
DECLARE_INPUT
(Mapping,
MessageMapping
);
51
DECLARE_OUTPUT
(Mapping,
MessageMapping
);
52
};
53
54
}
55
56
57
#endif
include
vreckoAP
EditorController
AbilityMapper.h
Generated on Tue Feb 19 2013 10:23:43 for vrecko by
1.8.3.1