Click or drag to resize
DigitalRuneGameObjectManager Class
Manages a collection of GameObjects.
Inheritance Hierarchy
SystemObject
  DigitalRune.GameGameObjectManager

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public class GameObjectManager : IGameObjectService

The GameObjectManager type exposes the following members.

Constructors
  NameDescription
Public methodGameObjectManager
Initializes a new instance of the GameObjectManager class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Updates all game objects.
Top
Properties
  NameDescription
Public propertyObjects
Gets the game objects.
Top
Remarks

This class has a collection of game objects. The game can add objects and the objects will be updated once per frame. Therefore, Update(TimeSpan) has to be called once per frame in the game loop.

If a game objects removes another game object from the Objects list, the other object will be effectively removed at the end of Update(TimeSpan) method. That means Update(TimeSpan) for the current frame will still be executed, and in the next frame the object is removed.

See Also