C# Class GPSTD_RM.AOEProjectile

Area of effect Projectile. It doesn't move. It only expands.
Inheritance: Projectile
Show file Open project: dideler/gps-tower-defense Class Usage Examples

Public Properties

Property Type Description
DEFAULT_LIFESPAN System.TimeSpan

Public Methods

Method Description
AOEProjectile ( Microsoft.Xna.Framework.Game g ) : System

Basic initialization.

AOEProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, int attackPower ) : System

Full constructor, inherited from the projectile constructor.

Update ( GameTime time ) : void

Basic update logic.

Method Details

AOEProjectile() public method

Basic initialization.
public AOEProjectile ( Microsoft.Xna.Framework.Game g ) : System
g Microsoft.Xna.Framework.Game The game that contains this object.
return System

AOEProjectile() public method

Full constructor, inherited from the projectile constructor.
public AOEProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, int attackPower ) : System
g Microsoft.Xna.Framework.Game The game that contains this object.
position Vector2 Initial position.
velocity Vector2 Initial velocity.
attackPower int How much damage will it do?
return System

Update() public method

Basic update logic.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime The current game time.
return void

Property Details

DEFAULT_LIFESPAN public static property

public static TimeSpan,System DEFAULT_LIFESPAN
return System.TimeSpan