XNA Game Studio 3.1
GameComponent Members

The following tables list the members exposed by the GameComponent type.

Public Constructors

NameDescription
Public MethodGameComponentInitializes a new instance of this class.
Public Properties

NameDescription
Public PropertyEnabledIndicates whether GameComponent.Update should be called when Game.Update is called.
Public PropertyGame Gets the Game associated with this GameComponent.
Public PropertyUpdateOrderIndicates the order in which the GameComponent should be updated relative to other GameComponent instances. Lower values are updated first.
Public Methods

NameDescription
Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodEquals (Inherited from Object.)
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetType (Inherited from Object.)
Public MethodInitializeCalled when the GameComponent needs to be initialized.
Public MethodReferenceEquals (Inherited from Object.)
Public MethodToString (Inherited from Object.)
Public MethodUpdateCalled when the GameComponent needs to be updated. Override this method with component-specific update code.
Protected Methods

NameDescription
Protected MethodFinalize Allows a GameComponent to attempt to free resources and perform other cleanup operations before garbage collection reclaims the GameComponent.
Protected MethodMemberwiseClone (Inherited from Object.)
Protected MethodOnEnabledChangedCalled when the Enabled property changes. Raises the EnabledChanged event.
Protected MethodOnUpdateOrderChangedCalled when the UpdateOrder property changes. Raises the UpdateOrderChanged event.
Public Events

NameDescription
Public EventDisposedRaised when the GameComponent is disposed.
Public EventEnabledChangedRaised when the Enabled property changes.
Public EventUpdateOrderChangedRaised when the UpdateOrder property changes.
See Also

Reference

Tags :


Page view tracker