Interface subsystem

The Interface subsystem manages the program's presentation--what it looks like to users and what users can do (and not do) with the program's data.

A model, derived from Taligent's Presentation framework, specifies the program's presentation. The model--which gets its information from the Game subsystem--coordinates with a view class to display the presentation.

The model also coordinates with the view to handle user input, such as keypresses. The view inherits the ability to receive keypresses from Taligent's MKeyEventHandler. The view sends news of keypresses to the model, which communicates with the Game subsystem via the simulation level to determine which actors get the input. (In the current simulation, only the ship receives input.)

To see how refreshing the display is enhanced by offscreen buffering, see "Refreshing the screen" (page 43).


The TSimulationModel object holds all persistent simulation data--it provides an interface to the document framework storage services.

Displaying the simulation as it runs is managed by the TSimulationView instance. The view updates the display whenever it receives a notification from the TSimulationLevel object that the simulation has changed.


[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