C# Класс ThreadedPlatformer.Enemy

A monster who is impeding the progress of our fearless adventurer.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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