#include <Command.h>
Inheritance diagram for ShootCommand:
Public Member Functions | |
ShootCommand (Person *person) | |
ShootCommand (List *command) | |
void | execute () |
std::string | getString () |
Static Public Member Functions | |
static std::string | id () |
Private Attributes | |
Person * | _person |
Static Private Attributes | |
static const std::string | _id = "shoot" |
Definition at line 172 of file Command.h.
|
Definition at line 13 of file ShootCommand.cpp. |
|
Definition at line 18 of file ShootCommand.cpp. References _person, List::firstString(), Level::getObject(), Level::instance(), and List::rest(). |
|
Implements Command. Definition at line 24 of file ShootCommand.cpp. References _person, and Person::shoot(). |
|
Implements Command. Definition at line 29 of file ShootCommand.cpp. References _id, _person, List::getString(), Object::id(), and List::snoc(). |
|
Definition at line 180 of file Command.h. References _id. Referenced by Command::loadCommand(). |
|
Definition at line 183 of file Command.h. Referenced by getString(), and id(). |
|
Definition at line 182 of file Command.h. Referenced by execute(), getString(), and ShootCommand(). |