An NDoc Documented Class Library

Game Methods

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

Public Static Methods

GetDataFilePath Retrun path to data directory
Main The BiG MAiN
Time Get game time (pause orthogonal)

Public Instance Methods

Activate (inherited from Form)Activates the form and gives it focus.
AddOwnedForm (inherited from Form)Adds an owned form to this form.
BeginInvoke (inherited from Control)Overloaded. Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.
BringToFront (inherited from Control)Brings the control to the front of the z-order.
Close (inherited from Form)Closes the form.
Contains (inherited from Control)Retrieves a value indicating whether the specified control is a child of the control.
CreateControl (inherited from Control)Forces the creation of the control, including the creation of the handle and any child controls.
CreateGraphics (inherited from Control)Creates the Graphics object for the control.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Dispose (inherited from Component)Overloaded. Releases all resources used by the Component.
DoDragDrop (inherited from Control)Begins a drag-and-drop operation.
EndInvoke (inherited from Control)Retrieves the return value of the asynchronous operation represented by the IAsyncResult object passed.
EndLevel Called when level finished
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindForm (inherited from Control)Retrieves the form that the control is on.
Flash (inherited from Form)Overloaded. Flashes the form's title bar and taskbar button at the default rate.
Focus (inherited from Control)Sets input focus to the control.
GetContainerControl (inherited from Control)Returns the next ContainerControl up the control's chain of parent controls.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetChildAtPoint (inherited from Control)Retrieves the child control that is located at the specified coordinates.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetNextControl (inherited from Control)Retrieves the next control forward or back in the tab order of child controls.
GetPreferredSize (inherited from Control)Retrieves the size of a rectangular area into which a control can be fitted.
GetType (inherited from Object)Gets the Type of the current instance.
Hide (inherited from Control)Conceals the control from the user.
Init Initialize graphics
InitializeLifetimeService (inherited from MarshalByRefObject)Obtains a lifetime service object to control the lifetime policy for this instance.
Invalidate (inherited from Control)Overloaded. Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.
Invoke (inherited from Control)Overloaded. Executes the specified delegate on the thread that owns the control's underlying window handle.
LayoutMdi (inherited from Form)Arranges the multiple document interface (MDI) child forms within the MDI parent form.
LoadMap Load new map
OnCreateData after device reset resincarnation
OnCreateDevice Create data vertex buffer
OnResetDevice Reincarnate after device reset
Pause Pause Game
PerformLayout (inherited from Control)Overloaded. Forces the control to apply layout logic to all its child controls.
PlayerDeath Called after player's death
PlayLevel Play level
PointToClient (inherited from Control)Computes the location of the specified screen point into client coordinates.
PointToScreen (inherited from Control)Computes the location of the specified client point into screen coordinates.
PreProcessMessage (inherited from Control)Preprocesses keyboard or input messages within the message loop before they are dispatched.
RectangleToClient (inherited from Control)Computes the size and location of the specified screen rectangle in client coordinates.
RectangleToScreen (inherited from Control)Computes the size and location of the specified client rectangle in screen coordinates.
Refresh (inherited from Control)Forces the control to invalidate its client area and immediately redraw itself and any child controls.
RemoveOwnedForm (inherited from Form)Removes an owned form from this form.
Render Setup all and draw whole game screen
RenderAll draw whole game screen
RenderHUD Draw HUD
ResetBackColor (inherited from Control)Resets the BackColor property to its default value.
ResetBindings (inherited from Control)Resets the DataBindings property to its default value.
ResetCursor (inherited from Control)Resets the Cursor property to its default value.
ResetFont (inherited from Control)Resets the Font property to its default value.
ResetForeColor (inherited from Control)Resets the ForeColor property to its default value.
ResetImeMode (inherited from Control)Resets the ImeMode property to its default value.
ResetMap Reset map (on player dead)
ResetRightToLeft (inherited from Control)Resets the RightToLeft property to its default value.
ResetText (inherited from Control)Resets the Text property to its default value.
ResumeLayout (inherited from Control)Overloaded. Resumes normal layout logic.
Run Run game (main menu)
RunGame run game
Scale (inherited from Control)Overloaded. Scales the control and any child controls to the specified ratio.
Score Get player score
ScrollControlIntoView (inherited from ScrollableControl)Scrolls the specified control into view on an auto-scroll enabled control.
ScrollWindow (inherited from Control)Overloaded. Performs the work of scaling the entire control and any child controls.
Select (inherited from Control)Overloaded. Activates the control.
SelectNextControl (inherited from Control)Activates the next control.
SendToBack (inherited from Control)Sends the control to the back of the z-order.
SetAutoScrollMargin (inherited from ScrollableControl)Sets the size of the auto-scroll margins.
SetBounds (inherited from Control)Overloaded. Sets the bounds of the control to the specified location and size.
SetDesktopBounds (inherited from Form)Sets the bounds of the form in desktop coordinates.
SetDesktopLocation (inherited from Form)Sets the location of the form in desktop coordinates.
SFXPlay Player sound effect
Show (inherited from Form)Overloaded. Shows the form with the specified owner to the user.
Show (inherited from Control)Overloaded. Displays the control to the user.
ShowDialog (inherited from Form)Overloaded. Shows the form as a modal dialog box with the currently active window set as its owner.
StopFlash (inherited from Form)Stops the form's title bar and taskbar button from flashing.
SuspendLayout (inherited from Control)Temporarily suspends the layout logic for the control.
ToString (inherited from Form)[Infrastructure-to be supplied.]
UnPause UnPause game
Update (inherited from Control)Causes the control to redraw the invalidated regions within its client area.
Validate (inherited from ContainerControl)Overloaded. Validates the last invalidated control and its ancestors up through, but not including, the current control.
ValidateAll (inherited from Form)Overloaded. Updates which button is the default control.

Protected Instance Methods

AccessibilityNotifyClients (inherited from Control)Overloaded. Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.
ActivateMdiChild (inherited from Form)Activates the MDI child of a form.
AdjustFormScrollbars (inherited from Form)[Infrastructure-to be supplied.]
ApplyAutoScaling (inherited from Form)Resizes the form according to the current value of the AutoScaleBaseSize property and the size of the current font.
CenterToParent (inherited from Form)Centers the position of the form within the bounds of the parent form.
CenterToScreen (inherited from Form)Centers the form on the current screen.
CreateAccessibilityInstance (inherited from Control)Creates a new accessibility object for the control.
CreateControlsInstance (inherited from Form)Creates a new instance of the ControlCollection class and assigns itself as the owner.
CreateHandle (inherited from Form)Creates the handle for the Form. If a derived class overrides this function, it must call the base implementation.
DefWndProc (inherited from Form)[Infrastructure-to be supplied.]
DestroyHandle (inherited from Control)Destroys the handle associated with the control.
DisposeOverloaded.  
Finalize (inherited from Component)Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
GetAccessibilityObjectByID (inherited from Control)Returns the control that is currently associated with the specified handle.
GetScrollState (inherited from ScrollableControl)Determines whether the specified flag has been set.
GetService (inherited from Component)Returns an object that represents a service provided by the Component or by its Container.
GetStyle (inherited from Control)Retrieves the value of the specified control style bit for the control.
GetTopLevel (inherited from Control)Determines if the control is a top-level control.
HandleEvents Read keys events
InitLayout (inherited from Control)Called after the control has been added to another container.
InvokeGotFocus (inherited from Control)Raises the GotFocus event for the specified control.
InvokeLostFocus (inherited from Control)Raises the LostFocus event for the specified control.
InvokeOnClick (inherited from Control)Raises the Click event for the specified control.
InvokePaint (inherited from Control)Raises the Paint event for the specified control.
InvokePaintBackground (inherited from Control)Raises the PaintBackground event for the specified control.
IsInputChar (inherited from Control)Determines if a character is an input character that the control recognizes.
IsInputKey (inherited from Control)Determines whether the specified key is a regular input key or a special key that requires preprocessing.
MemberwiseClone (inherited from MarshalByRefObject) 
NotifyInvalidate (inherited from Control)Raises the Invalidated event with a specified region of the control to invalidate.
OnActivated (inherited from Form)Raises the Activated event.
OnAutoSizeChanged (inherited from Control)Raises the AutoSizeChanged event.
OnAutoValidateChanged (inherited from ContainerControl) 
OnBackColorChanged (inherited from Control)Raises the BackColorChanged event.
OnBackgroundImageChanged (inherited from Control)Raises the BackgroundImageChanged event.
OnBackgroundImageLayoutChanged (inherited from Control)Raises the BackgroundImageLayoutChanged event.
OnBindingContextChanged (inherited from Control)Raises the BindingContextChanged event.
OnCausesValidationChanged (inherited from Control)Raises the CausesValidationChanged event.
OnClick (inherited from Control)Raises the Click event.
OnClosed (inherited from Form)Raises the Closed event.
OnClosing (inherited from Form)Raises the Closing event.
OnContextMenuChanged (inherited from Control)Raises the ContextMenuChanged event.
OnContextMenuStripChanged (inherited from Control)Raises the ContextMenuStripChanged event.
OnControlAdded (inherited from Control)Raises the ControlAdded event.
OnControlRemoved (inherited from Control)Raises the ControlRemoved event.
OnCreateControl (inherited from Form)Raises the CreateControl event.
OnCursorChanged (inherited from Control)Raises the CursorChanged event.
OnDeactivate (inherited from Form)Raises the Deactivate event.
OnDockChanged (inherited from Control)Raises the DockChanged event.
OnDoubleClick (inherited from Control)Raises the DoubleClick event.
OnDragDrop (inherited from Control)Raises the DragDrop event.
OnDragEnter (inherited from Control)Raises the DragEnter event.
OnDragLeave (inherited from Control)Raises the DragLeave event.
OnDragOver (inherited from Control)Raises the DragOver event.
OnEnabledChanged (inherited from Form)Raises the Deactivate event.
OnEnter (inherited from Control)Raises the Enter event.
OnFontChanged (inherited from Form)[To be supplied.]
OnForeColorChanged (inherited from Control)Raises the ForeColorChanged event.
OnFormClosed (inherited from Form)[To be supplied.]
OnFormClosing (inherited from Form)[To be supplied.]
OnGiveFeedback (inherited from Control)Raises the GiveFeedback event.
OnGotFocus (inherited from Control)Raises the GotFocus event.
OnHandleCreated (inherited from Form)[To be supplied.]
OnHandleDestroyed (inherited from Form)[Infrastructure-to be supplied.]
OnHelpRequested (inherited from Control)Raises the HelpRequested event.
OnChangeUICues (inherited from Control)Raises the ChangeUICues event.
OnImeModeChanged (inherited from Control)Raises the ImeModeChanged event.
OnInputLanguageChanged (inherited from Form)Raises the InputLanguageChanged event.
OnInputLanguageChanging (inherited from Form)Raises the InputLanguageChanging event.
OnInvalidated (inherited from Control)Raises the Invalidated event.
OnKeyDown (inherited from Control)Raises the KeyDown event.
OnKeyPress (inherited from Control)Raises the KeyPress event.
OnKeyUp (inherited from Control)Raises the KeyUp event.
OnLayout (inherited from Form)Raises the InputLanguageChanging event.
OnLeave (inherited from Control)Raises the Leave event.
OnLoad (inherited from Form)Raises the Load event.
OnLocationChanged (inherited from Control)Raises the LocationChanged event.
OnLostFocus (inherited from Control)Raises the LostFocus event.
OnMarginChanged (inherited from Control)Raises the LostFocus event.
OnMaximizedBoundsChanged (inherited from Form)Raises the MaximizedBoundsChanged event.
OnMaximumSizeChanged (inherited from Form)Raises the MaximumSizeChanged event.
OnMdiChildActivate (inherited from Form)Raises the MdiChildActivate event.
OnMenuComplete (inherited from Form)Raises the MenuComplete event.
OnMenuStart (inherited from Form)Raises the MenuStart event.
OnMinimumSizeChanged (inherited from Form)Raises the MinimumSizeChanged event.
OnMouseCaptureChanged (inherited from Control)Raises the MouseCaptureChanged event.
OnMouseClick (inherited from Control)Raises the MouseClick event.
OnMouseDoubleClick (inherited from Control)Raises the MouseDoubleClick event.
OnMouseDown (inherited from Control)Raises the MouseDown event.
OnMouseEnter (inherited from ScrollableControl)[Infrastructure-to be supplied.]
OnMouseHover (inherited from Control)Raises the MouseHover event.
OnMouseLeave (inherited from ScrollableControl)[Infrastructure-to be supplied.]
OnMouseMove (inherited from Control)Raises the MouseMove event.
OnMouseUp (inherited from Control)Raises the MouseUp event.
OnMouseWheel (inherited from ScrollableControl)Raises the MouseWheel event.
OnMove (inherited from Control)Raises the Move event.
OnNotifyMessage (inherited from Control)Notifies the control of Windows messages.
OnPaddingChanged (inherited from Control)Notifies the control of Windows messages.
OnPaint On paint (form) event handler
OnPaintBackground (inherited from Control)Paints the background of the control.
OnParentBackColorChanged (inherited from Control)Raises the BackColorChanged event when the BackColor property value of the control's container changes.
OnParentBackgroundImageChanged (inherited from Control)Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes.
OnParentBindingContextChanged (inherited from Control)Raises the BindingContextChanged event when the BindingContext property value of the control's container changes.
OnParentCursorChanged (inherited from Control)Raises the CursorChanged event.
OnParentEnabledChanged (inherited from Control)Raises the EnabledChanged event when the Enabled property value of the control's container changes.
OnParentFontChanged (inherited from Control)Raises the FontChanged event when the Font property value of the control's container changes.
OnParentForeColorChanged (inherited from Control)Raises the ForeColorChanged event when the ForeColor property value of the control's container changes.
OnParentChanged (inherited from Control)Raises the ParentChanged event.
OnParentRightToLeftChanged (inherited from Control)Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes.
OnParentVisibleChanged (inherited from Control)Raises the VisibleChanged event when the Visible property value of the control's container changes.
OnQueryContinueDrag (inherited from Control)Raises the QueryContinueDrag event.
OnRegionChanged (inherited from Control)Raises the RegionChanged event.
OnResize (inherited from Form)[Infrastructure-to be supplied.]
OnResizeBegin (inherited from Control)Raises the ResizeBegin event.
OnResizeEnd (inherited from Control)Raises the ResizeEnd event.
OnRightToLeftChanged (inherited from ScrollableControl)Raises the MouseWheel event.
OnScroll (inherited from ScrollableControl)Raises the Scroll event.
OnSizeChanged (inherited from Control)Raises the SizeChanged event.
OnStyleChanged (inherited from Form)Raises the StyleChanged event.
OnSystemColorsChanged (inherited from Control)Raises the SystemColorsChanged event.
OnTabIndexChanged (inherited from Control)Raises the TabIndexChanged event.
OnTabStopChanged (inherited from Control)Raises the TabStopChanged event.
OnTextChanged (inherited from Form)[To be supplied.]
OnValidated (inherited from Control)Raises the Validated event.
OnValidating (inherited from Control)Raises the Validating event.
OnVisibleChanged (inherited from Form)Raises the VisibleChanged event.
ProcessCmdKey (inherited from Form)Processes a command key. Overrides Control.processCmdKey() to provide additional handling of main menu command keys and Mdi accelerators.
ProcessDialogChar (inherited from Form)[Infrastructure-to be supplied.]
ProcessDialogKey (inherited from Form)Processes a dialog key. Overrides Control.processDialogKey(). This method implements handling of the RETURN, and ESCAPE keys in dialogs. The method performs no processing on keys that include the ALT or CONTROL modifiers.
ProcessKeyEventArgs (inherited from Control)Processes a key message and generates the appropriate control events.
ProcessKeyPreview (inherited from Form)[To be supplied.]
ProcessTabKey (inherited from Form)[To be supplied.]
RaiseDragEvent (inherited from Control)Raises the appropriate drag event.
RaiseKeyEvent (inherited from Control)Raises the appropriate key event.
RaiseMouseEvent (inherited from Control)Raises the appropriate mouse event.
RaisePaintEvent (inherited from Control)Raises the appropriate paint event.
RecreateHandle (inherited from Control)Forces the re-creation of the handle for the control.
ResetMouseEventArgs (inherited from Control)Resets the control to handle the MouseLeave event.
RtlTranslateAlignment (inherited from Control)Overloaded. Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.
RtlTranslateContent (inherited from Control)Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.
RtlTranslateHorizontal (inherited from Control)Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.
RtlTranslateLeftRight (inherited from Control)Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.
ScaleCore (inherited from Form)Base function that performs scaling of the form.
ScrollToControl (inherited from ScrollableControl)Scrolls the specified control into view on an auto-scroll enabled control.
Select (inherited from Form)Overloaded. Selects this form, and optionally selects the next/previous control.
SetBoundsCore (inherited from Form) 
SetClientSizeCore (inherited from Form)Sets the clientSize of the form. This will adjust the bounds of the form to make the clientSize the requested size.
SetDisplayRectLocation (inherited from ScrollableControl)Positions the DisplayRectangle property at the specified value.
SetScrollState (inherited from ScrollableControl)Sets a given scroll state bit.
SetStyle (inherited from Control)Sets the specified style bit to the specified value.
SetTopLevel (inherited from Control)Sets the control as the top-level control.
SetVisibleCore (inherited from Form) 
SizeFromClientSize (inherited from Control)Displays the control to the user.
UpdateBounds (inherited from Control)Overloaded. Updates the bounds of the control with the specified size and location.
UpdateDefaultButton (inherited from Form)Updates which button is the default control.
UpdateStyles (inherited from Control)Forces the assigned styles to be reapplied to the control.
UpdateZOrder (inherited from Control)Updates the control in its parent's z-order.
WndProc (inherited from Form)Base wndProc encapsulation.

Protected Internal Instance Methods

ProcessKeyMessage (inherited from Control)Processes a keyboard message.
ProcessMnemonic (inherited from ContainerControl)[Infrastructure-to be supplied.]
UpdateBounds (inherited from Control)Overloaded. Updates the bounds of the control with the current size and location.

See Also

Game Class | PunkMan.Game Namespace