![]() |
SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
|
utilies for the game More...


Go to the source code of this file.
Macros | |
| #define | PLAYER_HEIGHT 100 |
| #define | PROJ_LENGTH_FACTOR 2 |
| #define | INV_GET_POS(i) confData.invadersSize*(i)+confData.invadersDistance*(i) |
| #define | DEBUG_MSG(X) |
| #define | DEBUG_INSTR(X) |
| #define | PLAYER1 0 |
| #define | PLAYER2 1 |
Typedefs | |
| typedef nsGraphics::Vec2D | Position |
| typedef unsigned | playerID |
Enumerations | |
| enum class | WinValue { NOBODY , PLAYERS , INVADERS , GOD } |
| list of win values More... | |
Functions | |
| bool | areLinesColliding (unsigned start1, unsigned end1, unsigned start2, unsigned end2) |
| tells if 2 lines are colliding in a 1 dimentionnal space More... | |
| void | applyTransformation (Position &pos, unsigned sizeFrom, unsigned sizeTo) |
| change the size of a Position object More... | |
| #define INV_GET_POS | ( | i | ) | confData.invadersSize*(i)+confData.invadersDistance*(i) |
| typedef nsGraphics::Vec2D Position |
|
strong |
| void applyTransformation | ( | Position & | pos, |
| unsigned | sizeFrom, | ||
| unsigned | sizeTo | ||
| ) |
| bool areLinesColliding | ( | unsigned | start1, |
| unsigned | end1, | ||
| unsigned | start2, | ||
| unsigned | end2 | ||
| ) |
tells if 2 lines are colliding in a 1 dimentionnal space
| [in] | start1 | : position of the first point of the first line |
| [in] | end1 | posision of the last point of the first line |
| [in] | start2 | : position of the first point of the seconde line |
| [in] | end2 | posision of the last point of the second line |