#include <EventDeleteUnit.h>
Inherits EventInterface.
Inheritance diagram for EventDeleteUnit:
Public Member Functions | |
EventDeleteUnit (Field *p_field) | |
Standard constructor. | |
virtual | ~EventDeleteUnit () |
Standard desstructor. | |
virtual int | compute (Level *p_level) |
Computes the logic for the event. | |
Public Attributes | |
Field * | field |
Holds the field of the Unit to delete. |
Definition at line 34 of file EventDeleteUnit.h.
EventDeleteUnit::EventDeleteUnit | ( | Field * | p_field | ) |
Standard constructor.
p_field | Filed which unit will be delted. |
Definition at line 27 of file EventDeleteUnit.cpp.
References field.
EventDeleteUnit::~EventDeleteUnit | ( | ) | [virtual] |
int EventDeleteUnit::compute | ( | Level * | p_level | ) | [virtual] |
Computes the logic for the event.
p_level | Pointer to the Level. |
Implements EventInterface.
Definition at line 36 of file EventDeleteUnit.cpp.
References field, and Field::unit.
Holds the field of the Unit to delete.
Definition at line 59 of file EventDeleteUnit.h.
Referenced by compute(), and EventDeleteUnit().