Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
ICommand Class Referenceabstract

Superclass for Command object. More...

#include <ICommand.hpp>

Inheritance diagram for ICommand:
Inheritance graph
Collaboration diagram for ICommand:
Collaboration graph

Public Member Functions

 ICommand ()
 
 ICommand (const ICommand &other)
 
virtual bool isOnlyUICommand ()
 
virtual bool isValid (const std::string &cmd, const std::vector< std::string > &args) const =0
 
virtual void onCommand (ICommandSender &sender, const std::string &cmd, const std::vector< std::string > &args)=0
 

Detailed Description

Superclass for Command object.

If you want to create new command you should extend ICommand class and register that in CommandManager constructor

Warning
Don't forget to register your Command in CommandManager!!!

Constructor & Destructor Documentation

ICommand::ICommand ( )
inline
ICommand::ICommand ( const ICommand other)
inline

Member Function Documentation

virtual bool ICommand::isOnlyUICommand ( )
inlinevirtual

Reimplemented in CreateEntityCommand.

virtual bool ICommand::isValid ( const std::string &  cmd,
const std::vector< std::string > &  args 
) const
pure virtual

Implemented in CreateEntityCommand, and StopCommand.

virtual void ICommand::onCommand ( ICommandSender sender,
const std::string &  cmd,
const std::vector< std::string > &  args 
)
pure virtual

Implemented in CreateEntityCommand, and StopCommand.


The documentation for this class was generated from the following file: