C# Class MyGame.CDrawableComponent

This class represent a custom Drawable Component that has a CModel that handle drawing and a Unit that hanlde updating of the Drawable game component.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project

Méthodes publiques

Свойство Type Description
cModel CModel
unit Unit

Protected Properties

Свойство Type Description
myGame MyGame

Méthodes publiques

Méthode Description
CDrawableComponent ( MyGame game, Unit unit, CModel model ) : System
Draw ( GameTime gameTime ) : void

This method renders the current state.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Method Details

CDrawableComponent() public méthode

public CDrawableComponent ( MyGame game, Unit unit, CModel model ) : System
game MyGame
unit Unit
model CModel
Résultat System

Draw() public méthode

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
Résultat void

Update() public méthode

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

Property Details

cModel public_oe property

public CModel,MyGame cModel
Résultat CModel

myGame protected_oe property

protected MyGame,MyGame myGame
Résultat MyGame

unit public_oe property

public Unit,MyGame unit
Résultat Unit