Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Simulating the world

The unitSimulation is in charge of allowing units to move around the world, enforcing limits on where units can move. The unitSimulation also maintains the world clock and draws the world when a visual display is needed.

As units and unit groups are created they must be added to the simulation. Units can optionally be specified as non-blocking when they are added to the simulation.

The most important function for a unitSimulation is stepTime, where all units are advanced forward in time by that increment of time. There are many different simulation options that can be set to provide slightly different simulation parameters. See the unitSimulation documentation for more details on these.

A unit simulation can be paused. If paused, all calls to stepTime will be ignored until the simulation is unpaused.

Prev: Unit-Groups Next: Abstractions


Generated on Tue Aug 18 03:46:10 2009 for HOG by doxygen 1.3.4