Game subsystem

The Game subsystem defines the characteristics of an asteroid-shooting game:


The TSimulationLevel instance is responsible for starting and stopping the simulation in an orderly fashion and saving the simulation's state.

The derived class of TAbstractActor, TExplodingActor, provides additional protocol that is used by TExplosionBehavior for actors that explode. The TExplosionBehavior class represents the behavior between actors that explode when they collide.

Boundaries of the simulation are represented by the TBoundingBoxBehavior class. When an actor attempts to go outside the defined boundaries, the TBoundingBoxBehavior moves it back into the simulation.

The TShip class represents the user control space ship in the simulation. It is one of several concrete derived classes of TExplodingActor.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker