diff options
author | Stijn Buys <ingar@osirion.org> | 2015-01-03 16:54:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2015-01-03 16:54:18 +0000 |
commit | 85671408eed36060f5ff4799f2ee153d66e16282 (patch) | |
tree | f76d052c751507953996cf32f578b6d15ca172f5 /src/client/action.cc | |
parent | 87db4deac81853737d7fb7c44a4e5eaecc3bc2bd (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.cc | 23 |
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 |