C# Class MyGame.Unit

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

Méthodes publiques

Свойство Type Description
alive bool
baseWorld System.Matrix
position System.Vector3
rotation System.Vector3
scale System.Vector3

Protected Properties

Свойство Type Description
boundingBox BoundingBox
boundingSphere BoundingSphere
events List
myGame MyGame

Méthodes publiques

Méthode Description
Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System
addEvent ( MyGame.Event ev ) : void

Add event to the event queue

collideWith ( Unit otherUnit ) : bool
update ( GameTime gameTime ) : void

Allows the unit to update itself.

Method Details

Unit() public méthode

public Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System
game MyGame
position System.Vector3
rotation System.Vector3
scale System.Vector3
Résultat System

addEvent() public méthode

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

collideWith() public méthode

public collideWith ( Unit otherUnit ) : bool
otherUnit Unit
Résultat bool

update() public méthode

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Résultat void

Property Details

alive public_oe property

public bool alive
Résultat bool

baseWorld public_oe property

public Matrix,System baseWorld
Résultat System.Matrix

boundingBox protected_oe property

protected BoundingBox boundingBox
Résultat BoundingBox

boundingSphere protected_oe property

protected BoundingSphere boundingSphere
Résultat BoundingSphere

events protected_oe property

protected List events
Résultat List

myGame protected_oe property

protected MyGame myGame
Résultat MyGame

position public_oe property

public Vector3,System position
Résultat System.Vector3

rotation public_oe property

public Vector3,System rotation
Résultat System.Vector3

scale public_oe property

public Vector3,System scale
Résultat System.Vector3