Свойство | Type | Description | |
---|---|---|---|
CurrentIndex | int | ||
DrawRect | |||
FrameSize | Point | ||
Loop | |||
OriginIndex | int | ||
PauseFrame | Point | ||
Texture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
isAniStoped | bool | ||
isPositive | bool | ||
isStopAtLastFrame | bool |
Свойство | Type | Description | |
---|---|---|---|
loopedTimes | int | ||
mspf | int | ||
sheetSize | Point | ||
tslf | int |
Méthode | Description | |
---|---|---|
ChangeTexture ( Microsoft.Xna.Framework.Graphics.Texture2D ttNew, bool changeDrawRect ) : void |
Can be only used on Single Frame Sprite.
|
|
Copy ( ) : Sprite | ||
CopyBase ( ) : |
||
FrameToIndex ( Point Frame ) : int | ||
GetAbsPosition ( ) : Vector2 | ||
GetAbsRect ( ) : |
||
GetColliRect ( ) : |
||
GetDrawRect ( ) : |
||
GetRect ( ) : |
||
IndexToFrame ( int Index ) : Point | ||
Initialize ( ) : void | ||
OneFrameSprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 origin, float rotation, Color color, float depth, Microsoft.Xna.Framework.Game game ) : Sprite | ||
OneFrameSprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, float depth, Microsoft.Xna.Framework.Game game ) : Sprite | ||
OneFrameSprite ( Vector2 position, string texturePath, float depth, Microsoft.Xna.Framework.Game game ) : Sprite | ||
PlayAnime ( ) : void | ||
PurelyCopy ( ) : Sprite | ||
Rewind ( ) : void | ||
SetFPS ( int FPS ) : void | ||
Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Point sheetSize, Point frameSize, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int startIndex, int playFramesNum, Point sheetSize, Point frameSize, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
StopAnime ( ) : void | ||
StopAnimeAt ( Point frame ) : void | ||
StopAnimeAt ( int index ) : void | ||
Update ( |
||
resetFrame ( ) : void |
Méthode | Description | |
---|---|---|
Sprite ( Microsoft.Xna.Framework.Game game ) : System | ||
Sprite ( Sprite sp ) : System | ||
Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 origin, float rotation, Color color, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
Sprite ( Vector2 position, string texturePath, float depth, Microsoft.Xna.Framework.Game game ) : System |
public ChangeTexture ( Microsoft.Xna.Framework.Graphics.Texture2D ttNew, bool changeDrawRect ) : void | ||
ttNew | Microsoft.Xna.Framework.Graphics.Texture2D | The new texture |
changeDrawRect | bool | |
Résultat | void |
public GetAbsRect ( ) : |
||
Résultat |
public GetColliRect ( ) : |
||
Résultat |
public GetDrawRect ( ) : |
||
Résultat |
public static OneFrameSprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 origin, float rotation, Color color, float depth, Microsoft.Xna.Framework.Game game ) : Sprite | ||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
origin | Vector2 | |
rotation | float | |
color | Color | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | Sprite |
public static OneFrameSprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, float depth, Microsoft.Xna.Framework.Game game ) : Sprite | ||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | Sprite |
public static OneFrameSprite ( Vector2 position, string texturePath, float depth, Microsoft.Xna.Framework.Game game ) : Sprite | ||
position | Vector2 | |
texturePath | string | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | Sprite |
protected Sprite ( Microsoft.Xna.Framework.Game game ) : System | ||
game | Microsoft.Xna.Framework.Game | |
Résultat | System |
public Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Point sheetSize, Point frameSize, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
sheetSize | Point | |
frameSize | Point | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | System |
protected Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 origin, float rotation, Color color, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
origin | Vector2 | |
rotation | float | |
color | Color | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | System |
protected Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | System |
public Sprite ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int startIndex, int playFramesNum, Point sheetSize, Point frameSize, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
startIndex | int | |
playFramesNum | int | |
sheetSize | Point | |
frameSize | Point | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | System |
protected Sprite ( Vector2 position, string texturePath, float depth, Microsoft.Xna.Framework.Game game ) : System | ||
position | Vector2 | |
texturePath | string | |
depth | float | |
game | Microsoft.Xna.Framework.Game | |
Résultat | System |
public Update ( |
||
gameTime | ||
Résultat | void |
public Rectangle,Microsoft.Xna.Framework DrawRect | ||
Résultat |
public Texture2D,Microsoft.Xna.Framework.Graphics Texture | ||
Résultat | Microsoft.Xna.Framework.Graphics.Texture2D |