Public Member Functions | |
CommandDispatch (const std::string &name_, const PluginManager::CommandSlot &f_) | |
void | operator() (Entity &e, AdcCommand &cmd, bool &ok) |
Private Attributes | |
PluginManager::CommandSlot | f |
std::string | name |
Definition at line 220 of file PluginManager.h.
adchpp::PluginManager::CommandDispatch::CommandDispatch | ( | const std::string & | name_, | |
const PluginManager::CommandSlot & | f_ | |||
) |
Definition at line 159 of file PluginManager.cpp.
void adchpp::PluginManager::CommandDispatch::operator() | ( | Entity & | e, | |
AdcCommand & | cmd, | |||
bool & | ok | |||
) |
Definition at line 165 of file PluginManager.cpp.
References f, adchpp::AdcCommand::getCommand(), adchpp::Singleton< PluginManager >::getInstance(), adchpp::AdcCommand::getParameters(), adchpp::Entity::getState(), adchpp::PluginManager::handleCommand(), name, adchpp::AdcCommand::PRIORITY_IGNORE, adchpp::AdcCommand::setPriority(), adchpp::Entity::STATE_NORMAL, and adchpp::Util::tokenize().
Definition at line 227 of file PluginManager.h.
Referenced by operator()().
std::string adchpp::PluginManager::CommandDispatch::name [private] |
Definition at line 226 of file PluginManager.h.
Referenced by operator()().