#include <Gamelogic.h>
Collaboration diagram for Gamelogic:
Public Member Functions | |
Gamelogic (void) | |
Gamelogic (Input *) | |
void | Process_input (void) |
void | Powerup_effect (void) |
void | Move_sign (void) |
void | Move_powerup (void) |
void | Move_ball (void) |
void | Move_shot (void) |
void | Move_spider (void) |
void | Collapse_blocks (int) |
void | Spider_collision_detection (void) |
~Gamelogic (void) | |
Public Attributes | |
Highscore * | myHighscore |
float | delta |
Private Member Functions | |
bool | Ball_collision_detection (int) |
void | Powerup_collision_detection (void) |
void | Powerup_reset (void) |
VECTOR3D | Rejecting_vector (VECTOR3D, VECTOR3D) |
Private Attributes | |
Scene * | myScene |
Input * | myInput |
float | oldPadpos |
Powerup | powerups [11] |
int | active |
bool | invert |
bool | bl |
bool | br |
bool | tl |
bool | tr |
bool | l |
bool | r |
bool | b |
bool | t |
bool | hit |
bool | s1 |
bool | s2 |
bool | s3 |
int | superDuper |
int | mouseinvIter |
int | mouseposX |
VECTOR3D | normalLeft |
VECTOR3D | normalRight |
VECTOR3D | normalTop |
VECTOR3D | normalBottom |
VECTOR3D | ballPosition |
VECTOR3D | v3 |
MATRIX4X4 | transForward |
MATRIX4X4 | transBackward |
MATRIX4X4 | rotZ |
MATRIX4X4 | rotate |
VECTOR3D | rotaxis |
float | wave |
float | s |
float | phi |
int | j |
Gamelogic::Gamelogic | ( | void | ) |
default constructor for the gamelogic
Gamelogic::Gamelogic | ( | Input * | myInputIn | ) |
constructor for the gamelogic with the input object
Gamelogic::~Gamelogic | ( | void | ) |
gamelogic destructor
void Gamelogic::Process_input | ( | void | ) |
processing the input object
void Gamelogic::Powerup_effect | ( | void | ) |
managing the powerupeffects
void Gamelogic::Move_sign | ( | void | ) |
hovering of the sign
void Gamelogic::Move_powerup | ( | void | ) |
moving the powerups
void Gamelogic::Move_ball | ( | void | ) |
moving the ball
void Gamelogic::Move_shot | ( | void | ) |
moving the shots
void Gamelogic::Move_spider | ( | void | ) |
moving the spider
void Gamelogic::Collapse_blocks | ( | int | j | ) |
method for block collapsing
void Gamelogic::Spider_collision_detection | ( | void | ) |
collision detection for the spider
bool Gamelogic::Ball_collision_detection | ( | int | i | ) | [private] |
collision detection for the ball
void Gamelogic::Powerup_collision_detection | ( | void | ) | [private] |
collision detection for the powerups
void Gamelogic::Powerup_reset | ( | void | ) | [private] |
reseting the powerups
VECTOR3D Gamelogic::Rejecting_vector | ( | VECTOR3D | p1, | |
VECTOR3D | p2 | |||
) | [private] |
calculating the rejectingvector
float Gamelogic::delta |
Scene* Gamelogic::myScene [private] |
Input* Gamelogic::myInput [private] |
float Gamelogic::oldPadpos [private] |
Powerup Gamelogic::powerups[11] [private] |
int Gamelogic::active [private] |
bool Gamelogic::invert [private] |
bool Gamelogic::bl [private] |
bool Gamelogic::br [private] |
bool Gamelogic::tl [private] |
bool Gamelogic::tr [private] |
bool Gamelogic::l [private] |
bool Gamelogic::r [private] |
bool Gamelogic::b [private] |
bool Gamelogic::t [private] |
bool Gamelogic::hit [private] |
bool Gamelogic::s1 [private] |
bool Gamelogic::s2 [private] |
bool Gamelogic::s3 [private] |
int Gamelogic::superDuper [private] |
int Gamelogic::mouseinvIter [private] |
int Gamelogic::mouseposX [private] |
VECTOR3D Gamelogic::normalLeft [private] |
VECTOR3D Gamelogic::normalRight [private] |
VECTOR3D Gamelogic::normalTop [private] |
VECTOR3D Gamelogic::normalBottom [private] |
VECTOR3D Gamelogic::ballPosition [private] |
VECTOR3D Gamelogic::v3 [private] |
MATRIX4X4 Gamelogic::transForward [private] |
MATRIX4X4 Gamelogic::transBackward [private] |
MATRIX4X4 Gamelogic::rotZ [private] |
MATRIX4X4 Gamelogic::rotate [private] |
VECTOR3D Gamelogic::rotaxis [private] |
float Gamelogic::wave [private] |
float Gamelogic::s [private] |
float Gamelogic::phi [private] |
int Gamelogic::j [private] |