C# 클래스 TiaraFramework.Component.Sprite

상속: ASprite
파일 보기 프로젝트 열기: TiaraGames/TiaraFramework

공개 프로퍼티들

프로퍼티 타입 설명
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

보호된 프로퍼티들

프로퍼티 타입 설명
loopedTimes int
mspf int
sheetSize Point
tslf int

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

ChangeTexture() 공개 메소드

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
리턴 void

Copy() 공개 메소드

public Copy ( ) : Sprite
리턴 Sprite

CopyBase() 공개 메소드

public CopyBase ( ) : ASprite
리턴 ASprite

FrameToIndex() 공개 메소드

public FrameToIndex ( Point Frame ) : int
Frame Point
리턴 int

GetAbsPosition() 공개 메소드

public GetAbsPosition ( ) : Vector2
리턴 Vector2

GetAbsRect() 공개 메소드

public GetAbsRect ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

GetColliRect() 공개 메소드

public GetColliRect ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

GetDrawRect() 공개 메소드

public GetDrawRect ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

GetRect() 공개 메소드

public GetRect ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

IndexToFrame() 공개 메소드

public IndexToFrame ( int Index ) : Point
Index int
리턴 Point

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

OneFrameSprite() 공개 정적인 메소드

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
리턴 Sprite

OneFrameSprite() 공개 정적인 메소드

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
리턴 Sprite

OneFrameSprite() 공개 정적인 메소드

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
리턴 Sprite

PlayAnime() 공개 메소드

public PlayAnime ( ) : void
리턴 void

PurelyCopy() 공개 메소드

public PurelyCopy ( ) : Sprite
리턴 Sprite

Rewind() 공개 메소드

public Rewind ( ) : void
리턴 void

SetFPS() 공개 메소드

public SetFPS ( int FPS ) : void
FPS int
리턴 void

Sprite() 보호된 메소드

protected Sprite ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
리턴 System

Sprite() 보호된 메소드

protected Sprite ( Sprite sp ) : System
sp Sprite
리턴 System

Sprite() 공개 메소드

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
리턴 System

Sprite() 보호된 메소드

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
리턴 System

Sprite() 보호된 메소드

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
리턴 System

Sprite() 공개 메소드

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
리턴 System

Sprite() 보호된 메소드

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
리턴 System

StopAnime() 공개 메소드

public StopAnime ( ) : void
리턴 void

StopAnimeAt() 공개 메소드

public StopAnimeAt ( Point frame ) : void
frame Point
리턴 void

StopAnimeAt() 공개 메소드

public StopAnimeAt ( int index ) : void
index int
리턴 void

Update() 공개 메소드

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

resetFrame() 공개 메소드

public resetFrame ( ) : void
리턴 void

프로퍼티 상세

CurrentIndex 공개적으로 프로퍼티

public int CurrentIndex
리턴 int

DrawRect 공개적으로 프로퍼티

public Rectangle,Microsoft.Xna.Framework DrawRect
리턴 Microsoft.Xna.Framework.Rectangle

FrameSize 공개적으로 프로퍼티

public Point FrameSize
리턴 Point

Loop 공개적으로 프로퍼티

public LoopMode,TiaraFramework.Component Loop
리턴 LoopMode

OriginIndex 공개적으로 프로퍼티

public int OriginIndex
리턴 int

PauseFrame 공개적으로 프로퍼티

public Point PauseFrame
리턴 Point

Texture 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

isAniStoped 공개적으로 프로퍼티

public bool isAniStoped
리턴 bool

isPositive 공개적으로 프로퍼티

public bool isPositive
리턴 bool

isStopAtLastFrame 공개적으로 프로퍼티

public bool isStopAtLastFrame
리턴 bool

loopedTimes 보호되어 있는 프로퍼티

protected int loopedTimes
리턴 int

mspf 보호되어 있는 프로퍼티

protected int mspf
리턴 int

sheetSize 보호되어 있는 프로퍼티

protected Point sheetSize
리턴 Point

tslf 보호되어 있는 프로퍼티

protected int tslf
리턴 int