C# Class SafeAndFree.Creep

Inheritance: Actor
ファイルを表示 Open project: mokasocial/PrivacyDefense Class Usage Examples

Public Properties

Property Type Description
CenterPosition Vector2
DeathForecast int

Public Methods

Method Description
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.

Private Methods

Method Description
UpdateDebuffs ( ) : void

Method Details

Creep() public method

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.
return System

Creep() public method

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.
return System

GetStat() public method

Get a CreepStat from this instance.
public GetStat ( CreepStats key ) : int
key CreepStats The CreepStat to retrieve a value of.
return int

TakeHit() public method

Makes the creep take a projectile hit.
public TakeHit ( Projectile bullet ) : bool
bullet Projectile The projectile that hits the creep
return bool

Update() public method

Update this Creep instance.
public Update ( Vector2 paths ) : bool
paths Vector2 A set of paths that we may follow.
return bool

Property Details

CenterPosition public_oe property

The center position of this instance.
public Vector2 CenterPosition
return Vector2

DeathForecast public_oe property

public int DeathForecast
return int