C# Class AttackCommandSequence, Augmented_Tactics

Inheritance: Assets.Artificial_Intelligence.Character_Intelligence.Command_Sequences.CommandSequence
Show file Open project: Kavignon/Augmented_Tactics

Protected Properties

Property Type Description
AttackSequence List
_count int
valuesGenerator System.Random

Public Methods

Method Description
AddObservable ( CharacterObservable, obs ) : void
SelectTarget ( CharacterObservable, humans ) : void

Protected Methods

Method Description
CalculateDamageReduction ( CharacterBase, target ) : int
IsFacingPlayer ( ICharacter, human ) : bool
IsInsideAttackRange ( CharacterObservable, bs ) : bool

Private Methods

Method Description
CalculateDamageReduction ( CharacterObservable, human ) : int
CanDoExtraDamage ( ) : bool
GetIncreaseTemporaryStrength ( float strength ) : float
HarmCharacter ( CharacterObservable, human ) : void

Method Details

AddObservable() public method

public AddObservable ( CharacterObservable, obs ) : void
obs CharacterObservable,
return void

CalculateDamageReduction() protected method

protected CalculateDamageReduction ( CharacterBase, target ) : int
target CharacterBase,
return int

IsFacingPlayer() protected method

protected IsFacingPlayer ( ICharacter, human ) : bool
human ICharacter,
return bool

IsInsideAttackRange() protected method

protected IsInsideAttackRange ( CharacterObservable, bs ) : bool
bs CharacterObservable,
return bool

SelectTarget() public abstract method

public abstract SelectTarget ( CharacterObservable, humans ) : void
humans CharacterObservable,
return void

Property Details

AttackSequence protected property

protected List AttackSequence
return List

_count protected property

protected int _count
return int

valuesGenerator protected property

protected Random,System valuesGenerator
return System.Random