- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# SetDoorLockCommand Class Reference

`#include <Command.h>`

Inheritance diagram for SetDoorLockCommand:

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 329 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 337 of file Command.h. References _id. Referenced by Command::loadCommand().

## Member Data Documentation

Door* SetDoorLockCommand::_door`[private]`

| Definition at line 339 of file Command.h. Referenced by execute(), getString(), and SetDoorLockCommand().

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

| Definition at line 342 of file Command.h. Referenced by getString(), and id().

bool SetDoorLockCommand::_locked`[private]`

| Definition at line 340 of file Command.h. Referenced by execute(), getString(), and SetDoorLockCommand().

The documentation for this class was generated from the following files:

- C:/Documents and Settings/jegan/Desktop/projectX/Command.h
- C:/Documents and Settings/jegan/Desktop/projectX/SetDoorLockCommand.cpp