C# Class GPSTD_RM.SpawnPoint

Represents a point where enemies spawn.
Inheritance: GameObject
Afficher le fichier Open project: dideler/gps-tower-defense

Méthodes publiques

Свойство Type Description
emitFrequency double
hasBeenChecked bool
lastEmissionMS double
ready bool
started bool

Méthodes publiques

Méthode Description
Draw ( GameTime time ) : void

Draws the spawn point and its path.

FindElement ( XmlReader reader, string name ) : void

Advances the cursor to the element with the specified name.

GetRouteFromServer ( string bingMapKey, GeoCoordinate sourceCoord, GeoCoordinate TargetCoord ) : void

Requests a route from the server. It will result in driving directions from the source coordinates to the target coordinates.

Prepare ( ) : void

Loads the route from the server, if necessary.

SpawnPoint ( Game1 game, Vector2 startPosition, Vector2 finalPosition ) : System
makeCreep ( GameTime gameTime ) : void

Spawns a Creep using the creep factory.

wcRoute_OpenReadCompleted ( object sender, OpenReadCompletedEventArgs e ) : void

Event handler for the completed bing maps request

Private Methods

Méthode Description
GetValue ( XmlReader reader ) : string

Keep reading until it has a value.

MakeBuffer ( ) : void

Create the vertex buffer for path drawing.

Method Details

Draw() public méthode

Draws the spawn point and its path.
public Draw ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime The current game time.
Résultat void

FindElement() public méthode

Advances the cursor to the element with the specified name.
public FindElement ( XmlReader reader, string name ) : void
reader System.Xml.XmlReader An XML reader.
name string The name of the desired element.
Résultat void

GetRouteFromServer() public méthode

Requests a route from the server. It will result in driving directions from the source coordinates to the target coordinates.
public GetRouteFromServer ( string bingMapKey, GeoCoordinate sourceCoord, GeoCoordinate TargetCoord ) : void
bingMapKey string API key for this application.
sourceCoord GeoCoordinate Beginning of the path.
TargetCoord GeoCoordinate End of the path.
Résultat void

Prepare() public méthode

Loads the route from the server, if necessary.
public Prepare ( ) : void
Résultat void

SpawnPoint() public méthode

public SpawnPoint ( Game1 game, Vector2 startPosition, Vector2 finalPosition ) : System
game Game1
startPosition Vector2
finalPosition Vector2
Résultat System

makeCreep() public méthode

Spawns a Creep using the creep factory.
public makeCreep ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current game time.
Résultat void

wcRoute_OpenReadCompleted() public méthode

Event handler for the completed bing maps request
public wcRoute_OpenReadCompleted ( object sender, OpenReadCompletedEventArgs e ) : void
sender object Required for event handler.
e System.Net.OpenReadCompletedEventArgs Required for event handler.
Résultat void

Property Details

emitFrequency public_oe property

TODO
public double emitFrequency
Résultat double

hasBeenChecked public_oe property

TODO
public bool hasBeenChecked
Résultat bool

lastEmissionMS public_oe property

TODO
public double lastEmissionMS
Résultat double

ready public_oe property

TODO
public bool ready
Résultat bool

started public_oe property

TODO
public bool started
Résultat bool