CSS Logo XNACS1Lib Library Documentation
XNACS1Base Methods

Game-Themed Introductory Programming Project   

The methods of the XNACS1Base class are listed below. For a complete list of XNACS1Base class members, see the XNACS1Base Members topic.

Public Static Methods

EchoToBottomStatus Echo message to the status area located at the bottom of the drawing window.
EchoToTopStatus Echo message to the status area located at the top of the drawing window.
PlayACue Play the spcified audio cue for the specified length of seconds.
PlayBackgroundAudio Plays the specific audo file name continuously as the background audio.
RandomFloatOverloaded. Returns a random number between 0.0 to 1.0
RandomIntOverloaded. Returns a random integer between 0 and some VERY LARGE number.
SetBottomEchoColor Sets the bottom status echo font color.
SetTopEchoColor Sets the top status echo font color.

Public Instance Methods

Dispose Immediately release all resources. This method is called automatically during the destruction of the application.
Exit Quits the application. This is the last method you will call.
Run Begins the application. As programmer, you should instantiate an instance of XNACS1Base object, and then call this method to begin the application. This is the first method you should call to begin the application.

Protected Instance Methods

DrawWorld subclass can override this to customize the redrawing of the world. This function is called 40 times a second.
InitializeWorld Subclass should override this to define the World Cooridnate origin and width, and to allocate and otherwise initialize the application state. This method is called once at the beginning of the application.
UpdateWorld Subclass should override this method to update the world. This function is called 40 times a second.

See Also

XNACS1Base Class | XNACS1Lib Namespace