KillCommand Class Reference

#include <Command.h>

Inheritance diagram for KillCommand:

Command List of all members.

Public Member Functions

 KillCommand (Person *person)
 KillCommand (List *command)
void execute ()
std::string getString ()

Static Public Member Functions

static std::string id ()

Private Attributes

std::string _person

Static Private Attributes

static const std::string _id = "kill"

Detailed Description

Definition at line 451 of file Command.h.


Constructor & Destructor Documentation

KillCommand::KillCommand Person person  ) 
 

Definition at line 11 of file KillCommand.cpp.

KillCommand::KillCommand List command  ) 
 

Definition at line 17 of file KillCommand.cpp.

References _person, List::firstString(), and List::rest().


Member Function Documentation

void KillCommand::execute  )  [virtual]
 

Implements Command.

Definition at line 23 of file KillCommand.cpp.

References _person, Level::getObject(), and Level::instance().

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

Implements Command.

Definition at line 28 of file KillCommand.cpp.

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

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

Definition at line 459 of file Command.h.

References _id.

Referenced by Command::loadCommand().


Member Data Documentation

const std::string KillCommand::_id = "kill" [static, private]
 

Definition at line 463 of file Command.h.

Referenced by getString(), and id().

std::string KillCommand::_person [private]
 

Definition at line 461 of file Command.h.

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


The documentation for this class was generated from the following files:
Generated on Fri May 5 00:20:20 2006 for ProjectX by  doxygen 1.4.6-NO