C# Класс GPSTD_RM.Tower

All objects which are placeable by the player and fight against the creeps.
Наследование: GameObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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