C# 클래스 WindowsGame1.Sprite

파일 보기 프로젝트 열기: csce3513/Team18 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
assetName string
sourceRect Rectangle
timer float

보호된 프로퍼티들

프로퍼티 타입 설명
mPos Vector2
tex Texture2D

공개 메소드들

메소드 설명
Draw ( SpriteBatch theSpriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName ) : void
Sprite ( ) : System
Sprite ( int ID ) : System
Update ( GameTime theGameTime, Vector2 theSpeed, Vector2 theDirection ) : void
getPos ( ) : Vector2
getTex ( ) : Texture2D
updatePos ( Vector2 newPos ) : void

비공개 메소드들

메소드 설명
Update ( GameTime gameTime ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

LoadContent() 공개 메소드

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
theAssetName string
리턴 void

Sprite() 공개 메소드

public Sprite ( ) : System
리턴 System

Sprite() 공개 메소드

public Sprite ( int ID ) : System
ID int
리턴 System

Update() 공개 메소드

public Update ( GameTime theGameTime, Vector2 theSpeed, Vector2 theDirection ) : void
theGameTime GameTime
theSpeed Vector2
theDirection Vector2
리턴 void

getPos() 공개 메소드

public getPos ( ) : Vector2
리턴 Vector2

getTex() 공개 메소드

public getTex ( ) : Texture2D
리턴 Texture2D

updatePos() 공개 메소드

public updatePos ( Vector2 newPos ) : void
newPos Vector2
리턴 void

프로퍼티 상세

assetName 공개적으로 프로퍼티

public string assetName
리턴 string

mPos 보호되어 있는 프로퍼티

protected Vector2 mPos
리턴 Vector2

sourceRect 공개적으로 프로퍼티

public Rectangle sourceRect
리턴 Rectangle

tex 보호되어 있는 프로퍼티

protected Texture2D tex
리턴 Texture2D

timer 공개적으로 프로퍼티

public float timer
리턴 float