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

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

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

Метод Описание
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.

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

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

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

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

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

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

Initializes a new Projectile class.
public Projectile ( Texture2D projectileTexture ) : Sharpex2D
projectileTexture Sharpex2D.Rendering.Texture2D The ProjectileTexture.
Результат Sharpex2D

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

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