C# Class GPSTD_RM.Projectile

Represents all objects that are shot out of towers. I think the name is fairly self-explanatory.
Inheritance: GameObject
Show file Open project: dideler/gps-tower-defense

Public Properties

Property Type Description
DEFAULT_SPEED float
LENGTH float

Protected Properties

Property Type Description
EndOfLine Vector2

Public Methods

Method Description
Projectile ( Microsoft.Xna.Framework.Game game ) : System
Projectile ( Microsoft.Xna.Framework.Game game, Vector2 position, Vector2 velocity, int attackPower ) : System
Update ( GameTime time ) : void

Default implemetnation of update for Projectiles. Updates the position, based on the velocity.

Method Details

Projectile() public method

public Projectile ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Projectile() public method

public Projectile ( Microsoft.Xna.Framework.Game game, Vector2 position, Vector2 velocity, int attackPower ) : System
game Microsoft.Xna.Framework.Game
position Vector2
velocity Vector2
attackPower int
return System

Update() public method

Default implemetnation of update for Projectiles. Updates the position, based on the velocity.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
return void

Property Details

DEFAULT_SPEED public static property

Default speed of each moving projectile.
public static float DEFAULT_SPEED
return float

EndOfLine protected property

protected Vector2 EndOfLine
return Vector2

LENGTH public static property

How far should the projectile go before it stops?
public static float LENGTH
return float