#include <Command.h>
Inheritance diagram for AimCommand:
Public Member Functions | |
AimCommand (Person *person, yDirection yDir) | |
AimCommand (Person *person, Object *target=NULL) | |
AimCommand (List *command) | |
void | execute () |
std::string | getString () |
Static Public Member Functions | |
static std::string | id () |
Private Attributes | |
Person * | _person |
yDirection | _yDir |
xDirection | _xDir |
Object * | _target |
Static Private Attributes | |
static const std::string | _id = "aim" |
Definition at line 256 of file Command.h.
|
Definition at line 13 of file AimCommand.cpp. |
|
Definition at line 20 of file AimCommand.cpp. References _target, Level::getPlayer(), and Level::instance(). |
|
Definition at line 29 of file AimCommand.cpp. References _person, _target, _yDir, List::firstInt(), List::firstList(), List::firstString(), Level::getObject(), Level::instance(), and List::rest(). |
|
Implements Command. Definition at line 46 of file AimCommand.cpp. References _person, _target, _yDir, Person::aim(), Object::getBox(), glfuncs::intersectX(), and MIDDLE. |
|
Implements Command. Definition at line 68 of file AimCommand.cpp. References _id, _person, _target, _yDir, List::getString(), Object::id(), and List::snoc(). |
|
Definition at line 265 of file Command.h. References _id. Referenced by Command::loadCommand(). |
|
Definition at line 273 of file Command.h. Referenced by getString(), and id(). |
|
Definition at line 267 of file Command.h. Referenced by AimCommand(), execute(), and getString(). |
|
Definition at line 271 of file Command.h. Referenced by AimCommand(), execute(), and getString(). |
|
|
|
Definition at line 268 of file Command.h. Referenced by AimCommand(), execute(), and getString(). |