< Previous | Contents | Next >

G

Game class, BlackJack, 357, 360,

373–376

Game Lobby program, 315–325

Lobby class, 318–320

Lobby::AddPlayer() member function, 320–322

Lobby::Clear() member function, 322–323

Lobby::RemovePlayer()

member function, 322

main() function, 324–325

operator() member function, 323–324

Player class, 316–318

game loop, 72–73, 77

Game Over program, 5–6, 10–12

Game Stats 2.0 program, 24–26

Game Stats 3.0 program, 29–30 Game Stats program, 16–17 game testers, 4

generating random numbers, 68–72

calculating number within range, 71–72

Die Roller program, 68–69

rand()function, 69–70

seeding, 70–71

generic statement, 40

GenericPlayer class, BlackJack, 357, 359, 366–367

GetMood()member function,

Critter class, 278

Give Me a Number program, 171–172

global constants, 170, 184

global variables, 166–170, 184

accessing, 168

altering, 169

declaring, 168

Global Reach program, 166–168

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, 73–76 applying game loop, 74 creating, 76

ending, 76

setting up, 74–75