C# Класс GPSTD_RM.SpawnPoint

Represents a point where enemies spawn.
Наследование: GameObject
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
emitFrequency double
hasBeenChecked bool
lastEmissionMS double
ready bool
started bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetValue ( XmlReader reader ) : string

Keep reading until it has a value.

MakeBuffer ( ) : void

Create the vertex buffer for path drawing.

Описание методов

Draw() публичный Метод

Draws the spawn point and its path.
public Draw ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime The current game time.
Результат void

FindElement() публичный Метод

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.
Результат void

GetRouteFromServer() публичный Метод

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.
Результат void

Prepare() публичный Метод

Loads the route from the server, if necessary.
public Prepare ( ) : void
Результат void

SpawnPoint() публичный Метод

public SpawnPoint ( Game1 game, Vector2 startPosition, Vector2 finalPosition ) : System
game Game1
startPosition Vector2
finalPosition Vector2
Результат System

makeCreep() публичный Метод

Spawns a Creep using the creep factory.
public makeCreep ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current game time.
Результат void

wcRoute_OpenReadCompleted() публичный Метод

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.
Результат void

Описание свойств

emitFrequency публичное свойство

TODO
public double emitFrequency
Результат double

hasBeenChecked публичное свойство

TODO
public bool hasBeenChecked
Результат bool

lastEmissionMS публичное свойство

TODO
public double lastEmissionMS
Результат double

ready публичное свойство

TODO
public bool ready
Результат bool

started публичное свойство

TODO
public bool started
Результат bool