SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
God Class Reference

stores all God's data More...

#include <god.h>

Public Member Functions

Position getRightHandPos (unsigned screenWidth) const
 give initial the pixel coordinates of god's right hand More...
 

Public Attributes

GodState state
 god's current state More...
 
unsigned counter
 timer used differently in all states More...
 
unsigned thrownInvPosX
 x index (column in the grid) of the invader thrown by the hand of god More...
 
unsigned thrownInvPosY
 y index (invader in the column) of the invader thrown by the hand of god More...
 
InvaderType thrownInvType
 type of the invader thrown by the hand of god More...
 
Position thrownVector
 direction of the thrown invader movement More...
 
Position thrownTransition
 position of a point for bezier's curve (used in RETRIEVE1 and RETRIEVE2 states, for the hand animation) More...
 

Detailed Description

stores all God's data

Hand position is determined

Definition at line 47 of file god.h.

Member Function Documentation

◆ getRightHandPos()

Position God::getRightHandPos ( unsigned  screenWidth) const

give initial the pixel coordinates of god's right hand

Parameters
[in]screenWidth: width of the screen in pixel
Returns
pixel coordinates of the hand

Definition at line 151 of file godManager.cpp.

Member Data Documentation

◆ counter

unsigned God::counter

timer used differently in all states

Definition at line 58 of file god.h.

◆ state

GodState God::state

god's current state

Definition at line 53 of file god.h.

◆ thrownInvPosX

unsigned God::thrownInvPosX

x index (column in the grid) of the invader thrown by the hand of god

Definition at line 65 of file god.h.

◆ thrownInvPosY

unsigned God::thrownInvPosY

y index (invader in the column) of the invader thrown by the hand of god

Definition at line 70 of file god.h.

◆ thrownInvType

InvaderType God::thrownInvType

type of the invader thrown by the hand of god

Definition at line 75 of file god.h.

◆ thrownTransition

Position God::thrownTransition

position of a point for bezier's curve (used in RETRIEVE1 and RETRIEVE2 states, for the hand animation)

Definition at line 85 of file god.h.

◆ thrownVector

Position God::thrownVector

direction of the thrown invader movement

Definition at line 80 of file god.h.


The documentation for this class was generated from the following files: