- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# ActivateEnemyCommand Class Reference

`#include <Command.h>`

Inheritance diagram for ActivateEnemyCommand:

List of all members.

## Public Member Functions
| ActivateEnemyCommand (Enemy *enemy)
| ActivateEnemyCommand (List *command)
void | execute ()
std::string | getString ()
## Static Public Member Functions
static std::string | id ()
## Private Attributes
std::string | _enemy
## Static Private Attributes
static const std::string | _id = "activateEnemy"

## Detailed Description

Definition at line 499 of file Command.h.

## Constructor & Destructor Documentation

ActivateEnemyCommand::ActivateEnemyCommand | ( | Enemy * | enemy | ) |

| Definition at line 12 of file ActivateEnemyCommand.cpp.

ActivateEnemyCommand::ActivateEnemyCommand | ( | List * | command | ) |

| Definition at line 18 of file ActivateEnemyCommand.cpp. References _enemy, List::firstString(), and List::rest().

## Member Function Documentation

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

| Implements Command. Definition at line 24 of file ActivateEnemyCommand.cpp. References _enemy, Level::getObject(), and Level::instance().

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

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

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

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

## Member Data Documentation

std::string ActivateEnemyCommand::_enemy`[private]`

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

const std::string ActivateEnemyCommand::_id = "activateEnemy"`[static, private]`

| Definition at line 511 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/ActivateEnemyCommand.cpp