C# Class XPlane.Core.Entities.Projectile

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

Méthodes publiques

Méthode 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 méthode

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

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

Projectile() public méthode

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

Update() public méthode

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