EventUnblockUnit Class Reference

This class will unblock an Unit. More...

#include <EventUnblockUnit.h>

Inherits EventInterface.

Inheritance diagram for EventUnblockUnit:

Inheritance graph
[legend]
Collaboration diagram for EventUnblockUnit:

Collaboration graph
[legend]
List of all members.

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

Unitunit
 Holds the field of the Unit to delete.

Detailed Description

This class will unblock an Unit.

Definition at line 34 of file EventUnblockUnit.h.


Constructor & Destructor Documentation

EventUnblockUnit::EventUnblockUnit ( Unit p_unit  ) 

Standard constructor.

Parameters:
p_unit Unit to unblock.

Definition at line 27 of file EventUnblockUnit.cpp.

References unit.

EventUnblockUnit::~EventUnblockUnit (  )  [virtual]

Standard desstructor.

Definition at line 32 of file EventUnblockUnit.cpp.


Member Function Documentation

int EventUnblockUnit::compute ( Level p_level  )  [virtual]

Computes the logic for the event.

Parameters:
p_level Pointer to the Level.

Implements EventInterface.

Definition at line 36 of file EventUnblockUnit.cpp.

References Unit::isBlocked, and unit.


Member Data Documentation

Unit* EventUnblockUnit::unit

Holds the field of the Unit to delete.

Definition at line 59 of file EventUnblockUnit.h.

Referenced by compute(), and EventUnblockUnit().


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 22:02:23 2007 for C0re by  doxygen 1.5.2