ShootCommand Class Reference

#include <Command.h>

Inheritance diagram for ShootCommand:

Command List of all members.

Public Member Functions

 ShootCommand (Person *person)
 ShootCommand (List *command)
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 = "shoot"

Detailed Description

Definition at line 172 of file Command.h.


Constructor & Destructor Documentation

ShootCommand::ShootCommand Person person  ) 
 

Definition at line 13 of file ShootCommand.cpp.

ShootCommand::ShootCommand List command  ) 
 

Definition at line 18 of file ShootCommand.cpp.

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


Member Function Documentation

void ShootCommand::execute  )  [virtual]
 

Implements Command.

Definition at line 24 of file ShootCommand.cpp.

References _person, and Person::shoot().

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

Implements Command.

Definition at line 29 of file ShootCommand.cpp.

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

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

Definition at line 180 of file Command.h.

References _id.

Referenced by Command::loadCommand().


Member Data Documentation

const std::string ShootCommand::_id = "shoot" [static, private]
 

Definition at line 183 of file Command.h.

Referenced by getString(), and id().

Person* ShootCommand::_person [private]
 

Definition at line 182 of file Command.h.

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


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