#include <Command.h>
Inheritance diagram for AddHealthCommand:
Public Member Functions | |
AddHealthCommand (Person *person, int dHealth) | |
AddHealthCommand (List *command) | |
void | execute () |
std::string | getString () |
Static Public Member Functions | |
static std::string | id () |
Private Attributes | |
Person * | _person |
int | _dHealth |
Static Private Attributes | |
static const std::string | _id = "addHealth" |
Definition at line 276 of file Command.h.
|
Definition at line 13 of file AddHealthCommand.cpp. |
|
Definition at line 18 of file AddHealthCommand.cpp. References _dHealth, _person, List::firstInt(), List::firstString(), Level::getObject(), Level::instance(), and List::rest(). |
|
Implements Command. Definition at line 25 of file AddHealthCommand.cpp. References _dHealth, _person, and Person::addHealth(). |
|
Implements Command. Definition at line 30 of file AddHealthCommand.cpp. References _dHealth, _id, _person, List::getString(), Object::id(), and List::snoc(). |
|
Definition at line 284 of file Command.h. References _id. Referenced by Command::loadCommand(). |
|
Definition at line 287 of file Command.h. Referenced by AddHealthCommand(), execute(), and getString(). |
|
Definition at line 289 of file Command.h. Referenced by getString(), and id(). |
|
Definition at line 286 of file Command.h. Referenced by AddHealthCommand(), execute(), and getString(). |