C# Class FightingEntity, BarCrawl

Inheritance: Entity
Exibir arquivo Open project: karatesaul/BarCrawl Class Usage Examples

Protected Properties

Property Type Description
damageDealt int
foeTag string
range int

Protected Methods

Method Description
AttemptMove ( Move, move ) : bool

Attempts to execute the specified move. If there is something in the way, will not change position, but will change facing. In FightingEntity, this handles fighting as well as movement.

Start ( ) : void

Method Details

AttemptMove() protected method

Attempts to execute the specified move. If there is something in the way, will not change position, but will change facing. In FightingEntity, this handles fighting as well as movement.
protected AttemptMove ( Move, move ) : bool
move Move, The move to execute.
return bool

Start() protected method

protected Start ( ) : void
return void

Property Details

damageDealt protected_oe property

The damage dealt. Defaults to 10.
protected int damageDealt
return int

foeTag protected_oe property

The tag assigned to entities that this entity can fight.
protected string foeTag
return string

range protected_oe property

The range of attacks. Defaults to 1, AKA melee.
protected int range
return int