#include <EventUnblockUnit.h>
Inherits EventInterface.
Inheritance diagram for EventUnblockUnit:
Public Member Functions | |
EventUnblockUnit (Unit *p_unit) | |
Standard constructor. | |
virtual | ~EventUnblockUnit () |
Standard desstructor. | |
virtual int | compute (Level *p_level) |
Computes the logic for the event. | |
Public Attributes | |
Unit * | unit |
Holds the field of the Unit to delete. |
Definition at line 34 of file EventUnblockUnit.h.
EventUnblockUnit::EventUnblockUnit | ( | Unit * | p_unit | ) |
Standard constructor.
p_unit | Unit to unblock. |
Definition at line 27 of file EventUnblockUnit.cpp.
References unit.
EventUnblockUnit::~EventUnblockUnit | ( | ) | [virtual] |
int EventUnblockUnit::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 EventUnblockUnit.cpp.
References Unit::isBlocked, and unit.
Holds the field of the Unit to delete.
Definition at line 59 of file EventUnblockUnit.h.
Referenced by compute(), and EventUnblockUnit().