Microsoft.Xna.Framework
Class DrawableGameComponent

java.lang.Object
  extended by Microsoft.Xna.Framework.GameComponent
      extended by Microsoft.Xna.Framework.DrawableGameComponent
All Implemented Interfaces:
IDrawable, IGameComponent, IUpdateable, System.IDisposable

public class DrawableGameComponent
extends GameComponent
implements IDrawable


Field Summary
 
Fields inherited from interface Microsoft.Xna.Framework.IDrawable
DrawOrderChanged, VisibleChanged
 
Fields inherited from interface Microsoft.Xna.Framework.IUpdateable
EnabledChanged, UpdateOrderChanged
 
Constructor Summary
DrawableGameComponent(Game game)
           
 
Method Summary
 void Draw(GameTime gameTime)
          Draws the IDrawable.
 int getDrawOrder()
          The order in which to draw this object relative to other objects.
 Microsoft.Xna.Framework.Graphics.GraphicsDevice getGraphicsDevice()
           
 boolean getVisible()
          Indicates whether IDrawable.Draw should be called in Game.Draw for this game component.
 void Initialize()
           
 void setDrawOrder(int value)
           
 void setVisible(boolean value)
           
 
Methods inherited from class Microsoft.Xna.Framework.GameComponent
Dispose, getEnabled, getGame, getUpdateOrder, setEnabled, setUpdateOrder, Update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableGameComponent

public DrawableGameComponent(Game game)
Method Detail

getDrawOrder

public int getDrawOrder()
Description copied from interface: IDrawable
The order in which to draw this object relative to other objects. Objects with a lower value are drawn first.

Specified by:
getDrawOrder in interface IDrawable

setDrawOrder

public void setDrawOrder(int value)

getGraphicsDevice

public Microsoft.Xna.Framework.Graphics.GraphicsDevice getGraphicsDevice()

getVisible

public boolean getVisible()
Description copied from interface: IDrawable
Indicates whether IDrawable.Draw should be called in Game.Draw for this game component.

Specified by:
getVisible in interface IDrawable

setVisible

public void setVisible(boolean value)

Initialize

public void Initialize()
Specified by:
Initialize in interface IGameComponent
Overrides:
Initialize in class GameComponent

Draw

public void Draw(GameTime gameTime)
Description copied from interface: IDrawable
Draws the IDrawable. Reference page contains links to related conceptual articles.

Specified by:
Draw in interface IDrawable
Parameters:
gameTime - Snapshot of the game's timing state.