C# 클래스 ThreadedPlatformer.Enemy

A monster who is impeding the progress of our fearless adventurer.
파일 보기 프로젝트 열기: sq/Fracture 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( GameTime gameTime, BitmapBatch batch ) : void

Draws the animated enemy.

Enemy ( Level level, Vector2 position, string spriteSet ) : System

Constructs a new Enemy.

LoadContent ( string spriteSet ) : void

Loads a particular enemy sprite sheet and sounds.

Update ( GameTime gameTime ) : void

Paces back and forth along a platform, waiting at either end.

메소드 상세

Draw() 공개 메소드

Draws the animated enemy.
public Draw ( GameTime gameTime, BitmapBatch batch ) : void
gameTime Microsoft.Xna.Framework.GameTime
batch BitmapBatch
리턴 void

Enemy() 공개 메소드

Constructs a new Enemy.
public Enemy ( Level level, Vector2 position, string spriteSet ) : System
level Level
position Vector2
spriteSet string
리턴 System

LoadContent() 공개 메소드

Loads a particular enemy sprite sheet and sounds.
public LoadContent ( string spriteSet ) : void
spriteSet string
리턴 void

Update() 공개 메소드

Paces back and forth along a platform, waiting at either end.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void