C# Class GPSTD_RM.BasicTower

This tower fires the basic projectile.
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 ) : BasicTower

Create a basic tower with the default settings.

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.

Private Methods

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

Basic constructor.

Method Details

FactoryMake() public static method

Create a basic tower with the default settings.
public static FactoryMake ( Microsoft.Xna.Framework.Game game ) : BasicTower
game Microsoft.Xna.Framework.Game The game containing this object.
return BasicTower

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 The creep that is being shot.
return void

Update() public method

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

Property Details

PRICE public static property

The default cost for placing this 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