C# Class MyGame.CModel

Inheritance: IEvent
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Protected Properties

Свойство Type Description
events List
modelTransforms Matrix[]
myGame MyGame

Méthodes publiques

Méthode Description
CModel ( MyGame game, Model Model ) : System
Draw ( GameTime game ) : void

This method renders the current state.

SetModelEffect ( Effect effect, bool CopyEffect ) : void
addEvent ( Event ev ) : void

Add event to the event queue

buildBoundingBox ( ) : Microsoft.Xna.Framework.BoundingBox
buildBoundingSphere ( ) : BoundingSphere
updateBaseWorld ( Vector3 position, Vector3 rotation, Vector3 scale, Matrix baseWorld ) : void

Méthodes protégées

Méthode Description
reinitialize ( Model Model ) : void
setEffectParameter ( Effect effect, string paramName, object val ) : void

Private Methods

Méthode Description
generateTags ( ) : void

Method Details

CModel() public méthode

public CModel ( MyGame game, Model Model ) : System
game MyGame
Model Microsoft.Xna.Framework.Graphics.Model
Résultat System

Draw() public méthode

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

SetModelEffect() public méthode

public SetModelEffect ( Effect effect, bool CopyEffect ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
CopyEffect bool
Résultat void

addEvent() public méthode

Add event to the event queue
public addEvent ( Event ev ) : void
ev Event Event to be added
Résultat void

buildBoundingBox() public méthode

public buildBoundingBox ( ) : Microsoft.Xna.Framework.BoundingBox
Résultat Microsoft.Xna.Framework.BoundingBox

buildBoundingSphere() public méthode

public buildBoundingSphere ( ) : BoundingSphere
Résultat BoundingSphere

reinitialize() protected méthode

protected reinitialize ( Model Model ) : void
Model Microsoft.Xna.Framework.Graphics.Model
Résultat void

setEffectParameter() protected méthode

protected setEffectParameter ( Effect effect, string paramName, object val ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
paramName string
val object
Résultat void

updateBaseWorld() public méthode

public updateBaseWorld ( Vector3 position, Vector3 rotation, Vector3 scale, Matrix baseWorld ) : void
position Vector3
rotation Vector3
scale Vector3
baseWorld Matrix
Résultat void

Property Details

events protected_oe property

protected List events
Résultat List

modelTransforms protected_oe property

protected Matrix[] modelTransforms
Résultat Matrix[]

myGame protected_oe property

protected MyGame,MyGame myGame
Résultat MyGame