SetDoorLockCommand Class Reference

#include <Command.h>

Inheritance diagram for SetDoorLockCommand:

Command List of all members.

Public Member Functions

 SetDoorLockCommand (Door *door, bool locked)
 SetDoorLockCommand (List *command)
void execute ()
std::string getString ()

Static Public Member Functions

static std::string id ()

Private Attributes

Door_door
bool _locked

Static Private Attributes

static const std::string _id = "setDoorLock"

Detailed Description

Definition at line 293 of file Command.h.


Constructor & Destructor Documentation

SetDoorLockCommand::SetDoorLockCommand Door door,
bool  locked
 

Definition at line 10 of file SetDoorLockCommand.cpp.

SetDoorLockCommand::SetDoorLockCommand List command  ) 
 

Definition at line 15 of file SetDoorLockCommand.cpp.

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


Member Function Documentation

void SetDoorLockCommand::execute  )  [virtual]
 

Implements Command.

Definition at line 27 of file SetDoorLockCommand.cpp.

References _door, _locked, and Door::setLock().

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

Implements Command.

Definition at line 32 of file SetDoorLockCommand.cpp.

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

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

Definition at line 301 of file Command.h.

References _id.

Referenced by Command::loadCommand().


Member Data Documentation

Door* SetDoorLockCommand::_door [private]
 

Definition at line 303 of file Command.h.

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

const std::string SetDoorLockCommand::_id = "setDoorLock" [static, private]
 

Definition at line 306 of file Command.h.

Referenced by getString(), and id().

bool SetDoorLockCommand::_locked [private]
 

Definition at line 304 of file Command.h.

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


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