C# Class XPlane.Core.Entities.Enemy

Inheritance: Sharpex2D.Entities.Entity, IDynamicHitbox
Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Damage() public méthode

Damages the player.
public Damage ( int value ) : void
value int The Value.
Résultat void

Draw() public méthode

Draws the Player.
public Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The spriteBatch.
gameTime Sharpex2D.GameTime The GameTime.
Résultat void

Enemy() public méthode

Initializes a new Enemy class.
public Enemy ( Texture2D enemyTexture ) : Sharpex2D
enemyTexture Sharpex2D.Rendering.Texture2D The EnemyTexture.
Résultat Sharpex2D

IntersectsWith() public méthode

A value indicating whether the hitbox intersects with another.
public IntersectsWith ( IDynamicHitbox dynamicHitbox ) : bool
dynamicHitbox IDynamicHitbox The other DynamicHitbox.
Résultat bool

Update() public méthode

Updates the Player.
public Update ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
Résultat void