C# Class GPSTD_RM.Creep

This is the superclass of all enemies in the game.
Inheritance: GameObject
Show file Open project: dideler/gps-tower-defense Class Usage Examples

Public Properties

Property Type Description
SLOW_DECAY System.TimeSpan
currentLinkBox Microsoft.Xna.Framework.BoundingBox

Public Methods

Method Description
Creep ( Microsoft.Xna.Framework.Game game ) : System

Fairly basic initialization.

ReceiveDamage ( int damageValue ) : void

Called by projectiles to attempt to damage the enemy. The enemy provides its own implementation of how to get damaged. This default should serve most purposes.

Update ( GameTime time ) : void

Basic update logic for all creeps.

Private Methods

Method Description
PassedPoint ( ) : bool

Has the creep passed a point along the path?

UpdateBox ( ) : void

Updates the bounding rectangle defined by the current link.

Method Details

Creep() public method

Fairly basic initialization.
public Creep ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game The game containing this object.
return System

ReceiveDamage() public method

Called by projectiles to attempt to damage the enemy. The enemy provides its own implementation of how to get damaged. This default should serve most purposes.
public ReceiveDamage ( int damageValue ) : void
damageValue int Damage value.
return void

Update() public method

Basic update logic for all creeps.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime Current game time.
return void

Property Details

SLOW_DECAY public static property

The amount of time it takes for a slow counter to wear off
public static TimeSpan,System SLOW_DECAY
return System.TimeSpan

currentLinkBox public property

Bounding rectangle defined by the current link.
public BoundingBox,Microsoft.Xna.Framework currentLinkBox
return Microsoft.Xna.Framework.BoundingBox