< Previous | Contents | Next >

G

Game class, BlackJack, 357, 360,

373376

Game Lobby program, 315325

Lobby class, 318320

Lobby::AddPlayer() member function, 320322

Lobby::Clear() member function, 322323

Lobby::RemovePlayer()

member function, 322

main() function, 324325

operator() member function, 323324

Player class, 316318

game loop, 7273, 77

Game Over program, 56, 1012

Game Stats 2.0 program, 2426

Game Stats 3.0 program, 2930 Game Stats program, 1617 game testers, 4

generating random numbers, 6872

calculating number within range, 7172

Die Roller program, 6869

rand()function, 6970

seeding, 7071

generic statement, 40

GenericPlayer class, BlackJack, 357, 359, 366367

GetMood()member function,

Critter class, 278

Give Me a Number program, 171172

global constants, 170, 184

global variables, 166170, 184

accessing, 168

altering, 169

declaring, 168

Global Reach program, 166168

hiding, 169 minimizing use of, 170

goodSwap() header, 192, 194, 237 greater than (>) operator, 40tbl greater than or equal to (>=)

operator, 40tbl

Guess My Number game, 7376 applying game loop, 74 creating, 76

ending, 76

setting up, 7475