ShootInRangeCommand Class Reference

#include <Command.h>

Inheritance diagram for ShootInRangeCommand:

Command List of all members.

Public Member Functions

 ShootInRangeCommand (Person *person, int range)
 ShootInRangeCommand (List *command)
void execute ()
std::string getString ()

Static Public Member Functions

static std::string id ()

Private Attributes

Person_person
int _shootRange

Static Private Attributes

static const std::string _id = "shootPlayer"

Detailed Description

Definition at line 157 of file Command.h.


Constructor & Destructor Documentation

ShootInRangeCommand::ShootInRangeCommand Person person,
int  range
 

Definition at line 14 of file ShootInRangeCommand.cpp.

ShootInRangeCommand::ShootInRangeCommand List command  ) 
 

Definition at line 19 of file ShootInRangeCommand.cpp.

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


Member Function Documentation

void ShootInRangeCommand::execute  )  [virtual]
 

Implements Command.

Definition at line 27 of file ShootInRangeCommand.cpp.

References _person, _shootRange, Object::getBox(), Level::getPlayer(), Level::instance(), glfuncs::intersectX(), and glfuncs::intersectY().

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

Implements Command.

Definition at line 40 of file ShootInRangeCommand.cpp.

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

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

Definition at line 165 of file Command.h.

References _id.

Referenced by Command::loadCommand().


Member Data Documentation

const std::string ShootInRangeCommand::_id = "shootPlayer" [static, private]
 

Definition at line 169 of file Command.h.

Referenced by getString(), and id().

Person* ShootInRangeCommand::_person [private]
 

Definition at line 167 of file Command.h.

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

int ShootInRangeCommand::_shootRange [private]
 

Definition at line 168 of file Command.h.

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


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