C# Class XPlane.Core.Entities.Projectile

Inheritance: Sharpex2D.Entities.Entity, IDynamicHitbox
ファイルを表示 Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Draws the projectile.

IntersectsWith ( IDynamicHitbox dynamicHitbox ) : bool

A value indicating whether the hitbox intersects with another.

Projectile ( Texture2D projectileTexture ) : Sharpex2D

Initializes a new Projectile class.

Update ( GameTime gameTime ) : void

Updates the projectile.

Method Details

Draw() public method

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

IntersectsWith() public method

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

Projectile() public method

Initializes a new Projectile class.
public Projectile ( Texture2D projectileTexture ) : Sharpex2D
projectileTexture Sharpex2D.Rendering.Texture2D The ProjectileTexture.
return Sharpex2D

Update() public method

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