C# 클래스 Astroids.Classes.Asteroid

파일 보기 프로젝트 열기: Timvangool/AsteroidsAPO2

공개 메소드들

메소드 설명
Asteroid ( ) : System
Asteroid ( int posX, int posY, int size, float speed, Vector2 direction ) : System
Asteroid ( int posX, int posY, int size, float speed, Vector2 direction, Microsoft.Xna.Framework.Content.ContentManager content ) : System
CheckBoundries ( int scrnWidth, int scrnHeight ) : void
Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
ExplodeAnimation ( GameTime gametime ) : void
GetAsteroidHitbox ( ) : Rectangle
GetSize ( ) : int
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Update ( GameTime gametime ) : void
getXPos ( ) : int
getYPos ( ) : int

메소드 상세

Asteroid() 공개 메소드

public Asteroid ( ) : System
리턴 System

Asteroid() 공개 메소드

public Asteroid ( int posX, int posY, int size, float speed, Vector2 direction ) : System
posX int
posY int
size int
speed float
direction Vector2
리턴 System

Asteroid() 공개 메소드

public Asteroid ( int posX, int posY, int size, float speed, Vector2 direction, Microsoft.Xna.Framework.Content.ContentManager content ) : System
posX int
posY int
size int
speed float
direction Vector2
content Microsoft.Xna.Framework.Content.ContentManager
리턴 System

CheckBoundries() 공개 메소드

public CheckBoundries ( int scrnWidth, int scrnHeight ) : void
scrnWidth int
scrnHeight int
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

ExplodeAnimation() 공개 메소드

public ExplodeAnimation ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
리턴 void

GetAsteroidHitbox() 공개 메소드

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

GetSize() 공개 메소드

public GetSize ( ) : int
리턴 int

Load() 공개 메소드

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

Update() 공개 메소드

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

getXPos() 공개 메소드

public getXPos ( ) : int
리턴 int

getYPos() 공개 메소드

public getYPos ( ) : int
리턴 int