CSS Logo XNACS1Lib Library Documentation
XNACS1Base Members

Game-Themed Introductory Programming Project   

XNACS1Base overview

Public Static Properties

GamePad For accessing the state of the XBOX 360 GamePad Controller. In the absence of a GamePad controller, the keyboard will be polled according to the default mapping.

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 Constructors

XNACS1Base Constructor This is the constructor of the base class for the library.

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