C# 클래스 Starwar.Sprites.Sprite

상속: IVisualElement
파일 보기 프로젝트 열기: daxnet/Starwar

공개 메소드들

메소드 설명
CheckOutOfViewport ( Viewport viewport ) : bool
CollidesWith ( Sprite other ) : bool
CollidesWith ( Sprite other, bool calcPerPixel ) : bool
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position ) : System
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
PerPixelCollision ( Sprite a, Sprite b ) : bool

메소드 상세

CheckOutOfViewport() 공개 메소드

public CheckOutOfViewport ( Viewport viewport ) : bool
viewport Microsoft.Xna.Framework.Graphics.Viewport
리턴 bool

CollidesWith() 공개 메소드

public CollidesWith ( Sprite other ) : bool
other Sprite
리턴 bool

CollidesWith() 공개 메소드

public CollidesWith ( Sprite other, bool calcPerPixel ) : bool
other Sprite
calcPerPixel bool
리턴 bool

Draw() 공개 메소드

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Sprite() 공개 메소드

public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System

Sprite() 공개 메소드

public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
리턴 System

Update() 공개 메소드

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