C# Class XPlane.Core.Entities.Enemy

Inheritance: Sharpex2D.Entities.Entity, IDynamicHitbox
显示文件 Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method 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 method

Damages the player.
public Damage ( int value ) : void
value int The Value.
return void

Draw() public method

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

Enemy() public method

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

IntersectsWith() public method

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

Update() public method

Updates the Player.
public Update ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
return void