C# 클래스 GPSTD_RM.SpawnPoint

Represents a point where enemies spawn.
상속: GameObject
파일 보기 프로젝트 열기: dideler/gps-tower-defense

공개 프로퍼티들

프로퍼티 타입 설명
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