C# Class WebGame.Projectile

Inheritance: Entity
Show file Open project: AdmiralPotato/ggj2013 Class Usage Examples

Public Methods

Method Description
ApplyForce ( System.TimeSpan elapsedTime ) : double?
Create ( ProjectileType type ) : Projectile
Projectile ( ) : System
Projectile ( Vector3 position, Vector3 velocity ) : System
Projectile ( double mass ) : System
Update ( System.TimeSpan elapsed ) : void

Protected Methods

Method Description
CheckForCollisions ( Vector3 oldPosition ) : void

Private Methods

Method Description
Detonate ( ) : void
DisplacementToTarget ( ) : Vector3
DisplacementToTarget ( Vector3 referencePosition ) : Vector3

Method Details

ApplyForce() public method

public ApplyForce ( System.TimeSpan elapsedTime ) : double?
elapsedTime System.TimeSpan
return double?

CheckForCollisions() protected method

protected CheckForCollisions ( Vector3 oldPosition ) : void
oldPosition Vector3
return void

Create() public static method

public static Create ( ProjectileType type ) : Projectile
type ProjectileType
return Projectile

Projectile() public method

public Projectile ( ) : System
return System

Projectile() public method

public Projectile ( Vector3 position, Vector3 velocity ) : System
position Vector3
velocity Vector3
return System

Projectile() public method

public Projectile ( double mass ) : System
mass double
return System

Update() public method

public Update ( System.TimeSpan elapsed ) : void
elapsed System.TimeSpan
return void