#include <Command.h>
Inheritance diagram for FollowPlayerInRangeCommand:
Public Member Functions | |
FollowPlayerInRangeCommand (Person *person, int range) | |
FollowPlayerInRangeCommand (List *command) | |
void | execute () |
std::string | getString () |
Static Public Member Functions | |
static std::string | id () |
Private Attributes | |
Person * | _person |
int | _range |
Static Private Attributes | |
static const std::string | _id = "followPlayerInRange" |
Definition at line 141 of file Command.h.
|
Definition at line 14 of file FollowPlayerInRangeCommand.cpp. |
|
Definition at line 19 of file FollowPlayerInRangeCommand.cpp. References _person, _range, List::firstInt(), List::firstString(), Level::getObject(), Level::instance(), and List::rest(). |
|
Implements Command. Definition at line 26 of file FollowPlayerInRangeCommand.cpp. References _person, _range, Object::getBox(), Level::getPlayer(), Level::instance(), LEFT, and RIGHT. |
|
Implements Command. Definition at line 43 of file FollowPlayerInRangeCommand.cpp. References _id, _person, _range, List::getString(), Object::id(), and List::snoc(). |
|
Definition at line 149 of file Command.h. References _id. Referenced by Command::loadCommand(). |
|
Definition at line 154 of file Command.h. Referenced by getString(), and id(). |
|
Definition at line 151 of file Command.h. Referenced by execute(), FollowPlayerInRangeCommand(), and getString(). |
|
Definition at line 152 of file Command.h. Referenced by execute(), FollowPlayerInRangeCommand(), and getString(). |