C# Class GPSTD_RM.Creep

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

Méthodes publiques

Свойство Type Description
SLOW_DECAY System.TimeSpan
currentLinkBox Microsoft.Xna.Framework.BoundingBox

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ReceiveDamage() public méthode

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.
Résultat void

Update() public méthode

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

Property Details

SLOW_DECAY public_oe static_oe property

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

currentLinkBox public_oe property

Bounding rectangle defined by the current link.
public BoundingBox,Microsoft.Xna.Framework currentLinkBox
Résultat Microsoft.Xna.Framework.BoundingBox