EventComputeUnit Class Reference

This class will unblock an Unit. More...

#include <EventComputeUnit.h>

Inherits EventInterface.

Inheritance diagram for EventComputeUnit:

Inheritance graph
[legend]
Collaboration diagram for EventComputeUnit:

Collaboration graph
[legend]
List of all members.

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

Fieldfield
 Holds the field of the Unit to delete.

Detailed Description

This class will unblock an Unit.

Definition at line 32 of file EventComputeUnit.h.


Constructor & Destructor Documentation

EventComputeUnit::EventComputeUnit ( Field p_field  ) 

Standard constructor.

Parameters:
p_field Field, which unit should be computed.

Definition at line 28 of file EventComputeUnit.cpp.

References field.

EventComputeUnit::~EventComputeUnit (  )  [virtual]

Standard desstructor.

Definition at line 33 of file EventComputeUnit.cpp.


Member Function Documentation

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

Computes the logic for the event.

Parameters:
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:


Member Data Documentation

Field* EventComputeUnit::field

Holds the field of the Unit to delete.

Definition at line 57 of file EventComputeUnit.h.

Referenced by compute(), and EventComputeUnit().


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