#include <EventComputeUnit.h>
Inherits EventInterface.
Inheritance diagram for EventComputeUnit:
Public Member Functions | |
EventComputeUnit (Field *p_field) | |
Standard constructor. | |
virtual | ~EventComputeUnit () |
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 32 of file EventComputeUnit.h.
EventComputeUnit::EventComputeUnit | ( | Field * | p_field | ) |
Standard constructor.
p_field | Field, which unit should be computed. |
Definition at line 28 of file EventComputeUnit.cpp.
References field.
EventComputeUnit::~EventComputeUnit | ( | ) | [virtual] |
int EventComputeUnit::compute | ( | Level * | p_level | ) | [virtual] |
Computes the logic for the event.
p_level | Pointer to the Level. |
Implements EventInterface.
Definition at line 37 of file EventComputeUnit.cpp.
References Unit::compute(), field, and Field::unit.
Here is the call graph for this function:
Holds the field of the Unit to delete.
Definition at line 57 of file EventComputeUnit.h.
Referenced by compute(), and EventComputeUnit().