C# Класс SafeAndFree.Creep

Наследование: Actor
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
CenterPosition Vector2
DeathForecast int

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

Метод Описание
Creep ( CreepTypeData creepData, Vector2 position, MEDIA_ID textureID ) : System

Creep instance constructor.

Creep ( CreepTypeData creepData, Vector2 position, MEDIA_ID textureID, int path, int startingWaypoint ) : System

Creep instance constructor.

GetStat ( CreepStats key ) : int

Get a CreepStat from this instance.

TakeHit ( Projectile bullet ) : bool

Makes the creep take a projectile hit.

Update ( Vector2 paths ) : bool

Update this Creep instance.

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

Метод Описание
UpdateDebuffs ( ) : void

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

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

Creep instance constructor.
public Creep ( CreepTypeData creepData, Vector2 position, MEDIA_ID textureID ) : System
creepData SafeAndFree.Enumerations.CreepTypeData
position Vector2 The spawning position.
textureID MEDIA_ID The MEDIA_ID for this creep's texture.
Результат System

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

Creep instance constructor.
public Creep ( CreepTypeData creepData, Vector2 position, MEDIA_ID textureID, int path, int startingWaypoint ) : System
creepData SafeAndFree.Enumerations.CreepTypeData
position Vector2 The spawning position.
textureID MEDIA_ID The MEDIA_ID for this creep's texture.
path int The index of the path to follow.
startingWaypoint int The waypoint to spawn at.
Результат System

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

Get a CreepStat from this instance.
public GetStat ( CreepStats key ) : int
key CreepStats The CreepStat to retrieve a value of.
Результат int

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

Makes the creep take a projectile hit.
public TakeHit ( Projectile bullet ) : bool
bullet Projectile The projectile that hits the creep
Результат bool

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

Update this Creep instance.
public Update ( Vector2 paths ) : bool
paths Vector2 A set of paths that we may follow.
Результат bool

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

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

The center position of this instance.
public Vector2 CenterPosition
Результат Vector2

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

public int DeathForecast
Результат int