From 85671408eed36060f5ff4799f2ee153d66e16282 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 3 Jan 2015 16:54:18 +0000 Subject: Minor cleanup of client::Action and client::Keyboard code, added Action::FreeLook defintions. --- src/client/action.cc | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/client/action.cc') 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 -- cgit v1.2.3