Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/action.h')
-rw-r--r--src/client/action.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/client/action.h b/src/client/action.h
index 778c40d..5d56bb9 100644
--- a/src/client/action.h
+++ b/src/client/action.h
@@ -12,27 +12,42 @@
namespace client
{
-/// an Action that can be bound to a key
+/**
+ * @brief a client action key slot.
+ * actions are interpreted directly by the client and do not go throught the
+ * command line systems.
+ */
class Action
{
public:
/// actions
- enum Identifier {None = 0};
+ enum Identifier {None = 0,
+ Console,
+ Left, Right, Up, Down,
+ RollLeft, RollRight,
+ StrafeLeft, StrafeRight,
+ ThrustUp, ThrustDown,
+ Afterburner, Reverse,
+ Control,
+ CamLeft, CamRight, CamUp, CamDown,
+ ZoomIn, ZoomOut,
+ };
/// define a new action
Action(const char *name, Identifier action, const char *info = 0);
~Action();
- /// name of the Action
+ /// name
inline std::string const & name() const {
return action_name;
}
- /// Action Identifier
+ /// identifier
inline Identifier id() const {
return action_id;
}
+ /// text description
inline std::string const & info() const {
return action_info;
}