#include <Command.h>
Inheritance diagram for FollowPlayerCommand:
Public Member Functions | |
FollowPlayerCommand (Person *person) | |
FollowPlayerCommand (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 = "followPlayer" |
Definition at line 126 of file Command.h.
|
Definition at line 13 of file FollowPlayerCommand.cpp. |
|
Definition at line 18 of file FollowPlayerCommand.cpp. References _person, List::firstString(), Level::getObject(), Level::instance(), and List::rest(). |
|
Implements Command. Definition at line 23 of file FollowPlayerCommand.cpp. References _person, Object::getBox(), Level::getPlayer(), Level::instance(), LEFT, and RIGHT. |
|
Implements Command. Definition at line 34 of file FollowPlayerCommand.cpp. References _id, _person, List::getString(), Object::id(), and List::snoc(). |
|
Definition at line 134 of file Command.h. References _id. Referenced by Command::loadCommand(). |
|
Definition at line 138 of file Command.h. Referenced by getString(), and id(). |
|
Definition at line 136 of file Command.h. Referenced by execute(), FollowPlayerCommand(), and getString(). |