StopPersonCommand Class Reference

#include <Command.h>

Inheritance diagram for StopPersonCommand:

Command List of all members.

Public Member Functions

 StopPersonCommand (Person *person)
 StopPersonCommand (List *list)
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 = "stopPerson"

Detailed Description

Definition at line 339 of file Command.h.


Constructor & Destructor Documentation

StopPersonCommand::StopPersonCommand Person person  ) 
 

Definition at line 10 of file StopPersonCommand.cpp.

StopPersonCommand::StopPersonCommand List list  ) 
 

Definition at line 15 of file StopPersonCommand.cpp.

References _person, List::firstString(), Level::getObject(), Level::instance(), and List::rest().


Member Function Documentation

void StopPersonCommand::execute  )  [virtual]
 

Implements Command.

Definition at line 21 of file StopPersonCommand.cpp.

References _person, and Person::setVelocity().

std::string StopPersonCommand::getString  )  [virtual]
 

Implements Command.

Definition at line 26 of file StopPersonCommand.cpp.

References _id, _person, List::getString(), Object::id(), and List::snoc().

static std::string StopPersonCommand::id  )  [inline, static]
 

Definition at line 347 of file Command.h.

References _id.

Referenced by Command::loadCommand().


Member Data Documentation

const std::string StopPersonCommand::_id = "stopPerson" [static, private]
 

Definition at line 351 of file Command.h.

Referenced by getString(), and id().

Person* StopPersonCommand::_person [private]
 

Definition at line 349 of file Command.h.

Referenced by execute(), getString(), and StopPersonCommand().


The documentation for this class was generated from the following files:
Generated on Sat Apr 22 15:05:21 2006 for ProjectX by  doxygen 1.4.6-NO