C# 클래스 GPSTD_RM.Tower

All objects which are placeable by the player and fight against the creeps.
상속: GameObject
파일 보기 프로젝트 열기: dideler/gps-tower-defense 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
timeSinceLastReload System.TimeSpan

공개 메소드들

메소드 설명
Fire ( Creep target ) : void

Executes a "firing" function at the target creep.

Tower ( Microsoft.Xna.Framework.Game game ) : System

Initialize the tower with a reference to a game.

Update ( GameTime time ) : void

보호된 메소드들

메소드 설명
LocateTarget ( ) : Creep

A private method that most towers implement to find the creep closest to them.

메소드 상세

Fire() 공개 메소드

Executes a "firing" function at the target creep.
public Fire ( Creep target ) : void
target Creep
리턴 void

LocateTarget() 보호된 메소드

A private method that most towers implement to find the creep closest to them.
protected LocateTarget ( ) : Creep
리턴 Creep

Tower() 공개 메소드

Initialize the tower with a reference to a game.
public Tower ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game The game containing this object.
리턴 System

Update() 공개 메소드

public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

timeSinceLastReload 보호되어 있는 프로퍼티

Used locally to keep track of reloading.
protected TimeSpan,System timeSinceLastReload
리턴 System.TimeSpan