Game specific defines.
#include "SageDefines.h"
#include "Box2D\Box2D.h"
|
| enum class | eGameState {
Loading
, Instructions
, Begin
, Countdown
,
Playing
, Scoring
} |
| | Game state. More...
|
| |
| enum class | eWordColor {
Red
, Green
, Blue
, Black
,
Gray
} |
| | Enumerated type for word color. More...
|
| |
| enum class | eSprite {
Background
, LED
, Dashboard
, Smoke
,
Spark
, Bubble
, Arrow
, Square
,
Point
, Line
, B
, D
,
E
, G
, L
, N
,
R
, U
, Count1
, Count2
,
Count3
, Stroop
, EyeWhites
, EyeIrises
} |
| | Sprite enumerated type. More...
|
| |
| enum class | eDrawMode { Sprites
, Both
, Lines
, Wrap
} |
| | Draw mode enumerated type. More...
|
| |
| enum class | eSound {
Gun
, Crack
, Buzz
, Beep
,
Boing
, Thump
, PowerDown
, Tick
,
CountUp
, CountDown
} |
| | Sound enumerated type. More...
|
| |
|
| float | PW2RW (float x) |
| | Physics World to Render World units for a float. Physics World to Render World units for a float.
|
| |
| Vector2 | PW2RW (const b2Vec2 &v) |
| | Physics World to Render World units for a 2D vector. Physics World to Render World units for a 2D vector.
|
| |
| float | RW2PW (float x) |
| | Render World to Physics World units for a float. Render World to Physics World units for a float.
|
| |
| float | RW2PW (int x) |
| | Render World to Physics World units for an int. Render World to Physics World units for an integer.
|
| |
| b2Vec2 | RW2PW (int x, int y) |
| | Render World to Physics World units for a pair of integers. Render World to Physics World units for a 2D vector provided as a pair of integers.
|
| |
| b2Vec2 | RW2PW (const Vector2 &v) |
| | Physics World to Render World units for a vector.
|
| |
|
|
const int | INITIAL_WORDCOUNT = 25 |
| | Initial word count.
|
| |
|
const float | fPRV = 10.0f |
| | Physics World to Render World rescale value.
|
| |
◆ eDrawMode
An enumerated type for the drawing mode.
◆ eGameState
An enumerated state for the game state.
◆ eSound
An enumerated type for the sounds, which will be cast to an unsigned integer and used for the index of the corresponding sample.
◆ eSprite
An enumerated type for the sprites, which will be cast to an unsigned integer and used for the index of the corresponding texture in graphics memory.
◆ eWordColor
Words are initially eWordColor::Red, eWordColor::Green, or eWordColor::Blue when they are the current word, then they turn / eWordColor::Black until they explode and finally turn eWordColor::Gray.
◆ PW2RW() [1/2]
| Vector2 PW2RW |
( |
const b2Vec2 & | v | ) |
|
|
inline |
- Parameters
-
| v | A 2D vector in Physics World units. |
- Returns
- The equivalent vector in Render World units.
◆ PW2RW() [2/2]
- Parameters
-
| x | A floating point value in Physics World units. |
- Returns
- The equivalent value in Render World units.
◆ RW2PW() [1/4]
| b2Vec2 RW2PW |
( |
const Vector2 & | v | ) |
|
|
inline |
- Parameters
-
| v | A 2D vector in Render World units. |
- Returns
- The equivalent vector in Physics World units.
◆ RW2PW() [2/4]
- Parameters
-
| x | A floating point value in Render World units. |
- Returns
- The equivalent value in Physics World units.
◆ RW2PW() [3/4]
- Parameters
-
| x | An integer value in Render World units. |
- Returns
- The equivalent floating point value in Physics World units.
◆ RW2PW() [4/4]
| b2Vec2 RW2PW |
( |
int | x, |
|
|
int | y ) |
|
inline |
- Parameters
-
| x | An integer value in Render World units. |
| y | An integer value in Render World units. |
- Returns
- The equivalent 2D vector in Physics World units.