Свойство | 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éthode | Description | |
---|---|---|
Draw ( |
||
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 ( |
||
onAnimEnd ( ) : void | ||
onAnimStart ( ) : void | ||
onDraw ( |
||
onMapEnd ( ) : void | ||
onMapStart ( ) : void | ||
onUpdate ( |
Méthode | Description | |
---|---|---|
CalculateBoundingBox ( ) : void |
Méthode | Description | |
---|---|---|
CheckDrawEvents ( |
||
CheckUpdateEvents ( |
||
HandleTextureFileLocationError ( bool throwException ) : void | ||
Initialize ( ) : void | ||
LoadContent ( ) : void | ||
Unit ( |
public Draw ( |
||
spriteBatch | ||
Résultat | void |
public Unit ( Vector2 startingPosition, Color color, float rotation ) : System | ||
startingPosition | Vector2 | |
color | Color | |
rotation | float | |
Résultat | System |
public Unit ( Vector2 startingPosition, Color color, float rotation, Vector2 imageOrigin ) : System | ||
startingPosition | Vector2 | |
color | Color | |
rotation | float | |
imageOrigin | Vector2 | |
Résultat | System |
public Update ( |
||
gameTime | ||
Résultat | void |
public onDraw ( |
||
spriteBatch | ||
Résultat | void |
public onUpdate ( |
||
gameTime | ||
Résultat | void |
protected BoundingBox,Microsoft.Xna.Framework _boundingBox | ||
Résultat | Microsoft.Xna.Framework.BoundingBox |
protected Texture2D,Microsoft.Xna.Framework.Graphics _texture | ||
Résultat | Microsoft.Xna.Framework.Graphics.Texture2D |