C# 클래스 XPlane.Core.Entities.Projectile

상속: Sharpex2D.Entities.Entity, IDynamicHitbox
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
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