The Stroop Test Game
Ian Parberry's "Introduction to Game Physics"
Enumerations | Functions | Variables
GameDefines.h File Reference

Game specific defines. More...

#include "Defines.h"
#include "Box2D\Box2D.h"

Enumerations

enum class  eWordColor : UINT {
  Red , Green , Blue , Black ,
  Gray , Size
}
 Enumerated type for word color. More...
 
enum class  eSprite : UINT {
  Background , LED , Dashboard , B ,
  D , E , G , L ,
  N , R , U , Count1 ,
  Count2 , Count3 , Smoke , Spark ,
  Bubble , EyeWhites , EyeIrises , Stroop ,
  Arrow , Square , Point , Size
}
 Sprite enumerated type. More...
 
enum class  eSound : UINT {
  Gun , Crack , Buzz , Beep ,
  Boing , Thump , PowerDown , Tick ,
  CountUp , CountDown , Size
}
 Sound enumerated type. More...
 
enum class  eGameState : UINT {
  Instructions , Begin , Countdown , Playing ,
  Scoring , Size
}
 Game state. More...
 

Functions

float PW2RW (float x)
 Physics World to Render World units for a float.
 
Vector2 PW2RW (const b2Vec2 &v)
 Physics World to Render World units for a vector.
 
float RW2PW (float x)
 Render World to Physics World units for a float.
 
float RW2PW (int x)
 Render World to Physics World units for an int.
 
float RW2PW (unsigned x)
 Render World to Physics World units for an unsigned int.
 
b2Vec2 RW2PW (const Vector2 &v)
 Render World to Physics World units for a vector.
 

Variables

const int INITIAL_WORDCOUNT = 25
 Initial word count.
 
const float fPRV = 10.0f
 Physics World to Render World rescale value.
 

Detailed Description

Game specific defines.

Enumeration Type Documentation

◆ eGameState

enum eGameState : UINT
strong

Game state.

An enumerated state for the game state.Size must be last.

◆ eSound

enum eSound : UINT
strong

Sound enumerated type.

An enumerated type for the sounds, which will be cast to an unsigned integer and used for the index of the corresponding sample. Size must be last.

◆ eSprite

enum eSprite : UINT
strong

Sprite enumerated type.

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. Size must be last.

◆ eWordColor

enum eWordColor : UINT
strong

Enumerated type for word color.

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.