C# Class MiningGame.Code.Entities.EntityProjectile

Inheritance: System.Entity
Show file Open project: geel9/Minor-Destruction

Public Properties

Property Type Description
AirFriction float
EffectOfGravity float
EntityVelocity Vector2
ProjectileID byte
ShouldDestroy bool
UpdateTicks int

Public Methods

Method Description
Draw ( Microsoft sb ) : void
EntityMovement ( ) : void
GetEntityTile ( ) : Vector2
GetProjectileType ( ) : byte
Update ( GameTime time ) : void

Private Methods

Method Description
RectangleHitsTiles ( ShapeAABB rect ) : List

Method Details

Draw() public method

public Draw ( Microsoft sb ) : void
sb Microsoft
return void

EntityMovement() public method

public EntityMovement ( ) : void
return void

GetEntityTile() public method

public GetEntityTile ( ) : Vector2
return Vector2

GetProjectileType() public method

public GetProjectileType ( ) : byte
return byte

Update() public method

public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
return void

Property Details

AirFriction public property

public float AirFriction
return float

EffectOfGravity public property

public float EffectOfGravity
return float

EntityVelocity public property

public Vector2 EntityVelocity
return Vector2

ProjectileID public property

public byte ProjectileID
return byte

ShouldDestroy public property

public bool ShouldDestroy
return bool

UpdateTicks public property

public int UpdateTicks
return int