C# Class Gears.Playable.Unit

TODO: Comments. Clean up. Refactor.
Inheritance: System.Entity
Datei anzeigen Open project: spectrumbranch/gearsvge Class Usage Examples

Protected Properties

Property 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[]

Public Methods

Method 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

Protected Methods

Method Description
CalculateBoundingBox ( ) : void

Private Methods

Method 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 method

protected CalculateBoundingBox ( ) : void
return void

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Unit() public method

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
return System

Unit() public method

public Unit ( Vector2 startingPosition, Color color, float rotation ) : System
startingPosition Vector2
color Color
rotation float
return System

Unit() public method

public Unit ( Vector2 startingPosition, Color color, float rotation, Vector2 imageOrigin ) : System
startingPosition Vector2
color Color
rotation float
imageOrigin Vector2
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

onAnimEnd() public method

public onAnimEnd ( ) : void
return void

onAnimStart() public method

public onAnimStart ( ) : void
return void

onDraw() public method

public onDraw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

onMapEnd() public method

public onMapEnd ( ) : void
return void

onMapStart() public method

public onMapStart ( ) : void
return void

onUpdate() public method

public onUpdate ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

_boundingBox protected_oe property

protected BoundingBox,Microsoft.Xna.Framework _boundingBox
return Microsoft.Xna.Framework.BoundingBox

_color protected_oe property

protected Color _color
return Color

_depth protected_oe property

protected float _depth
return float

_imageOrigin protected_oe property

protected Vector2 _imageOrigin
return Vector2

_position protected_oe property

protected Vector2 _position
return Vector2

_rotation protected_oe property

protected float _rotation
return float

_scale protected_oe property

protected float _scale
return float

_texFileLoc protected_oe property

protected string _texFileLoc
return string

_texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _texture
return Microsoft.Xna.Framework.Graphics.Texture2D

_textureFileName protected_oe property

protected string _textureFileName
return string

_transformedPoints protected_oe property

protected Vector3[] _transformedPoints
return Vector3[]