Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-01-03 16:54:18 +0000
committerStijn Buys <ingar@osirion.org>2015-01-03 16:54:18 +0000
commit85671408eed36060f5ff4799f2ee153d66e16282 (patch)
treef76d052c751507953996cf32f578b6d15ca172f5 /src/client/action.cc
parent87db4deac81853737d7fb7c44a4e5eaecc3bc2bd (diff)
Minor cleanup of client::Action and client::Keyboard code,
added Action::FreeLook defintions.
Diffstat (limited to 'src/client/action.cc')
-rw-r--r--src/client/action.cc23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/client/action.cc b/src/client/action.cc
index 7c7a34c..2f54dc3 100644
--- a/src/client/action.cc
+++ b/src/client/action.cc
@@ -9,23 +9,28 @@
namespace client
{
-Action::Action(const char *name, Identifier action, const char *info)
+Action::Action(const char *name, Identifier action, const char *description)
{
- action_name.assign(name);
- action_id = action;
+ _name.assign(name);
+ _id = action;
- set_info(info);
+ set_description(description);
}
Action::~Action()
{
}
-void Action::set_info(const char *info)
+void Action::set_description(const char *description)
{
- if (info)
- action_info.assign(info);
+ if (description)
+ {
+ _description.assign(description);
+ }
else
- action_info.clear();
-}
+ {
+ _description.clear();
+ }
}
+
+} // namespace client