C# Класс GPSTD_RM.Creep

This is the superclass of all enemies in the game.
Наследование: GameObject
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
SLOW_DECAY System.TimeSpan
currentLinkBox Microsoft.Xna.Framework.BoundingBox

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

Метод Описание
Creep ( Microsoft.Xna.Framework.Game game ) : System

Fairly basic initialization.

ReceiveDamage ( int damageValue ) : void

Called by projectiles to attempt to damage the enemy. The enemy provides its own implementation of how to get damaged. This default should serve most purposes.

Update ( GameTime time ) : void

Basic update logic for all creeps.

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

Метод Описание
PassedPoint ( ) : bool

Has the creep passed a point along the path?

UpdateBox ( ) : void

Updates the bounding rectangle defined by the current link.

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

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

Fairly basic initialization.
public Creep ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game The game containing this object.
Результат System

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

Called by projectiles to attempt to damage the enemy. The enemy provides its own implementation of how to get damaged. This default should serve most purposes.
public ReceiveDamage ( int damageValue ) : void
damageValue int Damage value.
Результат void

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

Basic update logic for all creeps.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime Current game time.
Результат void

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

SLOW_DECAY публичное статическое свойство

The amount of time it takes for a slow counter to wear off
public static TimeSpan,System SLOW_DECAY
Результат System.TimeSpan

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

Bounding rectangle defined by the current link.
public BoundingBox,Microsoft.Xna.Framework currentLinkBox
Результат Microsoft.Xna.Framework.BoundingBox