C# 클래스 SunsetHigh.PopInOutSprite

An extension of SmoothMovingSprite that is designed to move on and off screen between two (generally static) points. Handles transitions during moving transitions (i.e. popping out while popping in and vice-versa) with ease. Used for menu components.
상속: SmoothMovingSprite
파일 보기 프로젝트 열기: ErraticUnicorn/MOSH

공개 메소드들

메소드 설명
PopInOutSprite ( ) : System
PopInOutSprite ( int x, int y ) : System
PopInOutSprite ( int x, int y, int width, int height ) : System
getAppearX ( ) : int
getAppearY ( ) : int
getHideX ( ) : int
getHideY ( ) : int
getPopDuration ( ) : float
isHiding ( ) : bool
isInFocus ( ) : bool
isMovingIn ( ) : bool
isMovingOut ( ) : bool
popIn ( ) : void
popOut ( ) : void
setAppearX ( int x ) : void
setAppearY ( int y ) : void
setHideX ( int x ) : void
setHideY ( int y ) : void
setPopDuration ( float time ) : void
setPopLocations ( int hideX, int hideY, int appearX, int appearY ) : void
update ( float elapsed ) : void

보호된 메소드들

메소드 설명
updateOffsets ( object sender, CameraOffsetEventArgs e ) : void

Used for listening to camera offset update events, so the sprite stays in a constant position on screen whenever the character moves (giving the appearance of a HUD)

메소드 상세

PopInOutSprite() 공개 메소드

public PopInOutSprite ( ) : System
리턴 System

PopInOutSprite() 공개 메소드

public PopInOutSprite ( int x, int y ) : System
x int
y int
리턴 System

PopInOutSprite() 공개 메소드

public PopInOutSprite ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
리턴 System

getAppearX() 공개 메소드

public getAppearX ( ) : int
리턴 int

getAppearY() 공개 메소드

public getAppearY ( ) : int
리턴 int

getHideX() 공개 메소드

public getHideX ( ) : int
리턴 int

getHideY() 공개 메소드

public getHideY ( ) : int
리턴 int

getPopDuration() 공개 메소드

public getPopDuration ( ) : float
리턴 float

isHiding() 공개 메소드

public isHiding ( ) : bool
리턴 bool

isInFocus() 공개 메소드

public isInFocus ( ) : bool
리턴 bool

isMovingIn() 공개 메소드

public isMovingIn ( ) : bool
리턴 bool

isMovingOut() 공개 메소드

public isMovingOut ( ) : bool
리턴 bool

popIn() 공개 메소드

public popIn ( ) : void
리턴 void

popOut() 공개 메소드

public popOut ( ) : void
리턴 void

setAppearX() 공개 메소드

public setAppearX ( int x ) : void
x int
리턴 void

setAppearY() 공개 메소드

public setAppearY ( int y ) : void
y int
리턴 void

setHideX() 공개 메소드

public setHideX ( int x ) : void
x int
리턴 void

setHideY() 공개 메소드

public setHideY ( int y ) : void
y int
리턴 void

setPopDuration() 공개 메소드

public setPopDuration ( float time ) : void
time float
리턴 void

setPopLocations() 공개 메소드

public setPopLocations ( int hideX, int hideY, int appearX, int appearY ) : void
hideX int
hideY int
appearX int
appearY int
리턴 void

update() 공개 메소드

public update ( float elapsed ) : void
elapsed float
리턴 void

updateOffsets() 보호된 메소드

Used for listening to camera offset update events, so the sprite stays in a constant position on screen whenever the character moves (giving the appearance of a HUD)
protected updateOffsets ( object sender, CameraOffsetEventArgs e ) : void
sender object
e CameraOffsetEventArgs
리턴 void