DAEffect Class Reference

This class holds all information for one direct absorbation. More...

#include <DAEffect.h>

Inherits Texture.

Inheritance diagram for DAEffect:

Inheritance graph
[legend]
Collaboration diagram for DAEffect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DAEffect (Vector3i p_origin, Vector3i p_destination, int p_valOrig, int p_valDest, Level *p_level)
 Standard constructor.
virtual ~DAEffect ()
 Standard destructor.
int render ()
 renders the effect for the direct absorbation.

Public Attributes

Vector3i origin
 Holds the grid position of the attacking unit.
Vector3i destination
 Holds the grid position of the attacked unit.
int valOrig
 Holds the combat value of the attacking unit.
int valDest
 Holds the combat value of the attacked unit.
Levellevel
 Holds the pointer to the level.

Detailed Description

This class holds all information for one direct absorbation.

Definition at line 31 of file DAEffect.h.


Constructor & Destructor Documentation

DAEffect::DAEffect ( Vector3i  p_origin,
Vector3i  p_destination,
int  p_valOrig,
int  p_valDest,
Level p_level 
)

Standard constructor.

Parameters:
p_origin Grid position of the attacking unit.
p_destination Grid position of the attacked unit.
p_valOrig Combat value for attacking unit.
p_valDest Combat value for attacked unit.
p_level Pointer to the level.

Definition at line 30 of file DAEffect.cpp.

References destination, level, origin, valDest, and valOrig.

DAEffect::~DAEffect (  )  [virtual]

Standard destructor.

Definition at line 39 of file DAEffect.cpp.


Member Function Documentation

int DAEffect::render (  )  [virtual]

renders the effect for the direct absorbation.

Returns:
0 for success.

Reimplemented from Texture.

Definition at line 43 of file DAEffect.cpp.

References destination, GLInterface::glPrint2d(), Vector3d::length(), level, origin, Texture::ratio, Texture::render(), valDest, valOrig, Vector3i::x, Vector3d::x, Vector3i::y, Vector3d::y, and Vector3d::z.

Here is the call graph for this function:


Member Data Documentation

Vector3i DAEffect::origin

Holds the grid position of the attacking unit.

Definition at line 60 of file DAEffect.h.

Referenced by DAEffect(), and render().

Vector3i DAEffect::destination

Holds the grid position of the attacked unit.

Definition at line 65 of file DAEffect.h.

Referenced by DAEffect(), and render().

int DAEffect::valOrig

Holds the combat value of the attacking unit.

Definition at line 70 of file DAEffect.h.

Referenced by DAEffect(), and render().

int DAEffect::valDest

Holds the combat value of the attacked unit.

Definition at line 75 of file DAEffect.h.

Referenced by DAEffect(), and render().

Level* DAEffect::level

Holds the pointer to the level.

Definition at line 80 of file DAEffect.h.

Referenced by DAEffect(), and render().


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