JumpCommand Class Reference

#include <Command.h>

Inheritance diagram for JumpCommand:

Command List of all members.

Public Member Functions

 JumpCommand (Person *person, xDirection xDir)
 JumpCommand (List *command)
void execute ()
std::string getString ()

Static Public Member Functions

static std::string id ()

Private Attributes

Person_person
xDirection _xDir

Static Private Attributes

static const std::string _id = "jump"

Detailed Description

Definition at line 21 of file Command.h.


Constructor & Destructor Documentation

JumpCommand::JumpCommand Person person,
xDirection  xDir
 

Definition at line 11 of file JumpCommand.cpp.

JumpCommand::JumpCommand List command  ) 
 

Definition at line 16 of file JumpCommand.cpp.

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


Member Function Documentation

void JumpCommand::execute  )  [virtual]
 

Implements Command.

Definition at line 24 of file JumpCommand.cpp.

References _person, _xDir, and Person::jump().

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

Implements Command.

Definition at line 29 of file JumpCommand.cpp.

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

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

Definition at line 28 of file Command.h.

References _id.

Referenced by Command::loadCommand().


Member Data Documentation

const std::string JumpCommand::_id = "jump" [static, private]
 

Definition at line 33 of file Command.h.

Referenced by getString(), and id().

Person* JumpCommand::_person [private]
 

Definition at line 30 of file Command.h.

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

xDirection JumpCommand::_xDir [private]
 

Definition at line 31 of file Command.h.

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


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