C# Class Gears.Playable.Unit

TODO: Comments. Clean up. Refactor.
Inheritance: System.Entity
Afficher le fichier Open project: spectrumbranch/gearsvge Class Usage Examples

Protected Properties

Свойство Type Description
_boundingBox Microsoft.Xna.Framework.BoundingBox
_color Color
_depth float
_imageOrigin Vector2
_position Vector2
_rotation float
_scale float
_texFileLoc string
_texture Microsoft.Xna.Framework.Graphics.Texture2D
_textureFileName string
_transformedPoints Vector3[]

Méthodes publiques

Méthode Description
Draw ( SpriteBatch spriteBatch ) : void
Unit ( ) : System

This defaulted constructor is for debugging/testing purposes only. It is required in a regular game to use a parameterized constructor instead.

Unit ( Vector2 startingPosition, Color color, float rotation ) : System
Unit ( Vector2 startingPosition, Color color, float rotation, Vector2 imageOrigin ) : System
Update ( GameTime gameTime ) : void
onAnimEnd ( ) : void
onAnimStart ( ) : void
onDraw ( SpriteBatch spriteBatch ) : void
onMapEnd ( ) : void
onMapStart ( ) : void
onUpdate ( GameTime gameTime ) : void

Méthodes protégées

Méthode Description
CalculateBoundingBox ( ) : void

Private Methods

Méthode Description
CheckDrawEvents ( SpriteBatch spriteBatch ) : void
CheckUpdateEvents ( GameTime gameTime ) : void
HandleTextureFileLocationError ( bool throwException ) : void
Initialize ( ) : void
LoadContent ( ) : void
Unit ( UnitParameters up ) : System

Method Details

CalculateBoundingBox() protected méthode

protected CalculateBoundingBox ( ) : void
Résultat void

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Unit() public méthode

This defaulted constructor is for debugging/testing purposes only. It is required in a regular game to use a parameterized constructor instead.
public Unit ( ) : System
Résultat System

Unit() public méthode

public Unit ( Vector2 startingPosition, Color color, float rotation ) : System
startingPosition Vector2
color Color
rotation float
Résultat System

Unit() public méthode

public Unit ( Vector2 startingPosition, Color color, float rotation, Vector2 imageOrigin ) : System
startingPosition Vector2
color Color
rotation float
imageOrigin Vector2
Résultat System

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

onAnimEnd() public méthode

public onAnimEnd ( ) : void
Résultat void

onAnimStart() public méthode

public onAnimStart ( ) : void
Résultat void

onDraw() public méthode

public onDraw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

onMapEnd() public méthode

public onMapEnd ( ) : void
Résultat void

onMapStart() public méthode

public onMapStart ( ) : void
Résultat void

onUpdate() public méthode

public onUpdate ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

_boundingBox protected_oe property

protected BoundingBox,Microsoft.Xna.Framework _boundingBox
Résultat Microsoft.Xna.Framework.BoundingBox

_color protected_oe property

protected Color _color
Résultat Color

_depth protected_oe property

protected float _depth
Résultat float

_imageOrigin protected_oe property

protected Vector2 _imageOrigin
Résultat Vector2

_position protected_oe property

protected Vector2 _position
Résultat Vector2

_rotation protected_oe property

protected float _rotation
Résultat float

_scale protected_oe property

protected float _scale
Résultat float

_texFileLoc protected_oe property

protected string _texFileLoc
Résultat string

_texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_textureFileName protected_oe property

protected string _textureFileName
Résultat string

_transformedPoints protected_oe property

protected Vector3[] _transformedPoints
Résultat Vector3[]