C# Class TiaraFramework.Component.Sprite

Inheritance: ASprite
Afficher le fichier Open project: TiaraGames/TiaraFramework

Méthodes publiques

Свойство Type Description
CurrentIndex int
DrawRect Microsoft.Xna.Framework.Rectangle
FrameSize Point
Loop LoopMode
OriginIndex int
PauseFrame Point
Texture Microsoft.Xna.Framework.Graphics.Texture2D
isAniStoped bool
isPositive bool
isStopAtLastFrame bool

Protected Properties

Свойство Type Description
loopedTimes int
mspf int
sheetSize Point
tslf int

Méthodes publiques

Méthode Description
ChangeTexture ( Microsoft.Xna.Framework.Graphics.Texture2D ttNew, bool changeDrawRect ) : void

Can be only used on Single Frame Sprite.

Copy ( ) : Sprite
CopyBase ( ) : ASprite
FrameToIndex ( Point Frame ) : int
GetAbsPosition ( ) : Vector2
GetAbsRect ( ) : Rectangle
GetColliRect ( ) : Rectangle
GetDrawRect ( ) : Rectangle
GetRect ( ) : Rectangle
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 ( GameTime gameTime ) : void
resetFrame ( ) : void

Méthodes protégées

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

Method Details

ChangeTexture() public méthode

Can be only used on Single Frame Sprite.
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

Copy() public méthode

public Copy ( ) : Sprite
Résultat Sprite

CopyBase() public méthode

public CopyBase ( ) : ASprite
Résultat ASprite

FrameToIndex() public méthode

public FrameToIndex ( Point Frame ) : int
Frame Point
Résultat int

GetAbsPosition() public méthode

public GetAbsPosition ( ) : Vector2
Résultat Vector2

GetAbsRect() public méthode

public GetAbsRect ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

GetColliRect() public méthode

public GetColliRect ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

GetDrawRect() public méthode

public GetDrawRect ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

GetRect() public méthode

public GetRect ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

IndexToFrame() public méthode

public IndexToFrame ( int Index ) : Point
Index int
Résultat Point

Initialize() public méthode

public Initialize ( ) : void
Résultat void

OneFrameSprite() public static méthode

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

OneFrameSprite() public static méthode

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

OneFrameSprite() public static méthode

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

PlayAnime() public méthode

public PlayAnime ( ) : void
Résultat void

PurelyCopy() public méthode

public PurelyCopy ( ) : Sprite
Résultat Sprite

Rewind() public méthode

public Rewind ( ) : void
Résultat void

SetFPS() public méthode

public SetFPS ( int FPS ) : void
FPS int
Résultat void

Sprite() protected méthode

protected Sprite ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

Sprite() protected méthode

protected Sprite ( Sprite sp ) : System
sp Sprite
Résultat System

Sprite() public méthode

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

Sprite() protected méthode

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

Sprite() protected méthode

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

Sprite() public méthode

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

Sprite() protected méthode

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

StopAnime() public méthode

public StopAnime ( ) : void
Résultat void

StopAnimeAt() public méthode

public StopAnimeAt ( Point frame ) : void
frame Point
Résultat void

StopAnimeAt() public méthode

public StopAnimeAt ( int index ) : void
index int
Résultat void

Update() public méthode

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

resetFrame() public méthode

public resetFrame ( ) : void
Résultat void

Property Details

CurrentIndex public_oe property

public int CurrentIndex
Résultat int

DrawRect public_oe property

public Rectangle,Microsoft.Xna.Framework DrawRect
Résultat Microsoft.Xna.Framework.Rectangle

FrameSize public_oe property

public Point FrameSize
Résultat Point

Loop public_oe property

public LoopMode,TiaraFramework.Component Loop
Résultat LoopMode

OriginIndex public_oe property

public int OriginIndex
Résultat int

PauseFrame public_oe property

public Point PauseFrame
Résultat Point

Texture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

isAniStoped public_oe property

public bool isAniStoped
Résultat bool

isPositive public_oe property

public bool isPositive
Résultat bool

isStopAtLastFrame public_oe property

public bool isStopAtLastFrame
Résultat bool

loopedTimes protected_oe property

protected int loopedTimes
Résultat int

mspf protected_oe property

protected int mspf
Résultat int

sheetSize protected_oe property

protected Point sheetSize
Résultat Point

tslf protected_oe property

protected int tslf
Résultat int