C# Класс XPlane.Core.Entities.Enemy

Наследование: Sharpex2D.Entities.Entity, IDynamicHitbox
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Damage ( int value ) : void

Damages the player.

Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Draws the Player.

Enemy ( Texture2D enemyTexture ) : Sharpex2D

Initializes a new Enemy class.

IntersectsWith ( IDynamicHitbox dynamicHitbox ) : bool

A value indicating whether the hitbox intersects with another.

Update ( GameTime gameTime ) : void

Updates the Player.

Описание методов

Damage() публичный Метод

Damages the player.
public Damage ( int value ) : void
value int The Value.
Результат void

Draw() публичный Метод

Draws the Player.
public Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The spriteBatch.
gameTime Sharpex2D.GameTime The GameTime.
Результат void

Enemy() публичный Метод

Initializes a new Enemy class.
public Enemy ( Texture2D enemyTexture ) : Sharpex2D
enemyTexture Sharpex2D.Rendering.Texture2D The EnemyTexture.
Результат Sharpex2D

IntersectsWith() публичный Метод

A value indicating whether the hitbox intersects with another.
public IntersectsWith ( IDynamicHitbox dynamicHitbox ) : bool
dynamicHitbox IDynamicHitbox The other DynamicHitbox.
Результат bool

Update() публичный Метод

Updates the Player.
public Update ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
Результат void