- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# EndLevelCommand Class Reference

`#include <Command.h>`

Inheritance diagram for EndLevelCommand:

List of all members.

## Public Member Functions
| EndLevelCommand ()
| EndLevelCommand (List *list)
void | execute ()
std::string | getString ()
## Static Public Member Functions
static std::string | id ()
## Static Private Attributes
static const std::string | _id = "endLevel"

## Detailed Description

Definition at line 376 of file Command.h.

## Constructor & Destructor Documentation

EndLevelCommand::EndLevelCommand | ( |  | ) |

| Definition at line 11 of file EndLevelCommand.cpp.

EndLevelCommand::EndLevelCommand | ( | List * | list | ) |

| Definition at line 15 of file EndLevelCommand.cpp.

## Member Function Documentation

void EndLevelCommand::execute | ( |  | ) | `[virtual]`

| Implements Command. Definition at line 19 of file EndLevelCommand.cpp. References Player::die(), Level::getPlayer(), Level::instance(), and Level::setWon().

std::string EndLevelCommand::getString | ( |  | ) | `[virtual]`

| Implements Command. Definition at line 28 of file EndLevelCommand.cpp. References _id, List::getString(), and List::snoc().

static std::string EndLevelCommand::id | ( |  | ) | `[inline, static]`

| Definition at line 384 of file Command.h. References _id. Referenced by Command::loadCommand().

## Member Data Documentation

const std::string EndLevelCommand::_id = "endLevel"`[static, private]`

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

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/EndLevelCommand.cpp