#include <Command.h>
Inheritance diagram for RunFromPlayerInRangeCommand:

Public Member Functions | |
| RunFromPlayerInRangeCommand (Person *person, int range) | |
| RunFromPlayerInRangeCommand (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 = "runFromPlayerInRange" |
Definition at line 161 of file Command.h.
|
||||||||||||
|
Definition at line 14 of file RunFromPlayerInRangeCommand.cpp. |
|
|
Definition at line 19 of file RunFromPlayerInRangeCommand.cpp. References _person, _range, List::firstInt(), List::firstString(), Level::getObject(), Level::instance(), and List::rest(). |
|
|
Implements Command. Definition at line 26 of file RunFromPlayerInRangeCommand.cpp. References _person, _range, Object::getBox(), Level::getPlayer(), Level::instance(), LEFT, and RIGHT. |
|
|
Implements Command. Definition at line 44 of file RunFromPlayerInRangeCommand.cpp. References _id, _person, _range, List::getString(), Object::id(), and List::snoc(). |
|
|
Definition at line 169 of file Command.h. References _id. |
|
|
Definition at line 174 of file Command.h. Referenced by getString(), and id(). |
|
|
Definition at line 171 of file Command.h. Referenced by execute(), getString(), and RunFromPlayerInRangeCommand(). |
|
|
Definition at line 172 of file Command.h. Referenced by execute(), getString(), and RunFromPlayerInRangeCommand(). |
1.4.6-NO