#include <DAEffect.h>
Inherits Texture.
Inheritance diagram for DAEffect:
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. | |
Level * | level |
Holds the pointer to the level. |
Definition at line 31 of file DAEffect.h.
DAEffect::DAEffect | ( | Vector3i | p_origin, | |
Vector3i | p_destination, | |||
int | p_valOrig, | |||
int | p_valDest, | |||
Level * | p_level | |||
) |
Standard constructor.
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] |
int DAEffect::render | ( | ) | [virtual] |
renders the effect for the direct absorbation.
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:
Holds the grid position of the attacking unit.
Definition at line 60 of file DAEffect.h.
Referenced by DAEffect(), and render().
Holds the grid position of the attacked unit.
Definition at line 65 of file DAEffect.h.
Referenced by DAEffect(), and render().
Holds the combat value of the attacking unit.
Definition at line 70 of file DAEffect.h.
Referenced by DAEffect(), and render().
Holds the combat value of the attacked unit.
Definition at line 75 of file DAEffect.h.
Referenced by DAEffect(), and render().
Holds the pointer to the level.
Definition at line 80 of file DAEffect.h.
Referenced by DAEffect(), and render().