C# Class GPSTD_RM.SlowTower

Inheritance: Tower
Show file Open project: dideler/gps-tower-defense

Public Properties

Property Type Description
PRICE int
defaultTexture Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
FactoryMake ( Microsoft.Xna.Framework.Game game ) : SlowTower

Creates a slow tower with the default stats.

Fire ( Creep target ) : void

The implementation of this fire method creates a basic projectile that is heading towards the target with a high velocity.

Update ( GameTime time ) : void

Basic update logic. Not much different that the base.

Private Methods

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

Basic constructor.

Method Details

FactoryMake() public static method

Creates a slow tower with the default stats.
public static FactoryMake ( Microsoft.Xna.Framework.Game game ) : SlowTower
game Microsoft.Xna.Framework.Game The game containing this object.
return SlowTower

Fire() public method

The implementation of this fire method creates a basic projectile that is heading towards the target with a high velocity.
public Fire ( Creep target ) : void
target Creep
return void

Update() public method

Basic update logic. Not much different that the base.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime The current game time.
return void

Property Details

PRICE public static property

Default cost for a slow tower.
public static int PRICE
return int

defaultTexture public static property

public static Texture2D,Microsoft.Xna.Framework.Graphics defaultTexture
return Microsoft.Xna.Framework.Graphics.Texture2D