22 #ifndef BURIED_MESSAGE_H 23 #define BURIED_MESSAGE_H 25 #include "common/keyboard.h" 26 #include "common/rect.h" 40 kMessageTypeMouseMove,
41 kMessageTypeLButtonUp,
42 kMessageTypeLButtonDown,
43 kMessageTypeMButtonUp,
44 kMessageTypeRButtonUp,
45 kMessageTypeRButtonDown,
46 kMessageTypeSetCursor,
50 kMessageTypeMouseBegin = kMessageTypeMouseMove,
51 kMessageTypeMouseEnd = kMessageTypeRButtonDown,
52 kMessageTypeKeyBegin = kMessageTypeKeyUp,
53 kMessageTypeKeyEnd = kMessageTypeKeyDown
61 virtual MessageType getMessageType()
const = 0;
65 template <MessageType type>
68 MessageType getMessageType()
const {
return type; }
72 template <MessageType type>
78 uint getFlags()
const {
return _flags; }
85 template <MessageType type>
91 uint getFlags()
const {
return _flags; }
114 uint getMessage()
const {
return _message; }
124 uint getTimer()
const {
return _timer; }
134 bool getEnable()
const {
return _enable; }
Definition: message.h:120
Definition: message.h:130
Definition: message.h:109
Definition: agent_evaluation.h:31
Definition: keyboard.h:294