O'Reilly logo

Going to War: Creating Computer War Games by Jason Darby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Global Values

Global values are values that are available to the whole game. We have only used a small number of global values so far in the war game, but it is likely that you may want to use more. You can see the values we have used so far in Figure A.4.

Figure A.4. The global values.

The slots are as follows:

Global Value A: Used to set the destination tile number to the global value. This value is used for Enemy_Unit1.

Global Value B: Used to set the destination tile number to the global value. This value is used for Enemy_Unit2.

Global Value C to I: Not currently used.

Global Value – g_Unit1: The global value will either be a 0 or a 1. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required