C# Class GPSTD_RM.LaserTower

This tower fires lazers, which hit all enemies in a straight line.
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 ) : LaserTower

Creates a laser tower with all the default properties.

Fire ( Creep target ) : void

This implementation of fire creates an AOEProjectile and destroys the tower.

Private Methods

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

Basic constructor.

Method Details

FactoryMake() public static method

Creates a laser tower with all the default properties.
public static FactoryMake ( Microsoft.Xna.Framework.Game game ) : LaserTower
game Microsoft.Xna.Framework.Game The game that contains this object.
return LaserTower

Fire() public method

This implementation of fire creates an AOEProjectile and destroys the tower.
public Fire ( Creep target ) : void
target Creep The creep that set off the laser.
return void

Property Details

PRICE public static property

Default cost for a laser 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