C# Class ACR_CreatureBehavior.AIParty

This class describe a party of AI controlled characters that work together. An AI controlled character can be a member of zero or one parties.
Show file Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Public Properties

Property Type Description
CleanUpEnemies List
Enemies List
EnemiesLost List
EnemyHardTargets List
EnemyHealers List
EnemySoftTargets List
EnemySpellcasters List
PartyAnimals List
PartyArchers List
PartyBuffs List
PartyControls List
PartyCowards List
PartyFlanks List
PartyLeader CreatureObject
PartyLosses int
PartyManager ACR_CreatureBehavior.AIPartyManager
PartyMedics List
PartyMembers List
PartyMindless List
PartyNukes List
PartyShocks List
PartySkrimishers List
PartyTanks List

Public Methods

Method Description
AIParty ( ACR_CreatureBehavior.AIPartyManager PartyManager ) : System

Create a new, empty AI party.

AddPartyEnemy ( CreatureObject PartyEnemy ) : void
AddPartyMember ( CreatureObject Creature ) : void

Add a party member.

CanPartyHear ( CreatureObject Creature ) : bool
CanPartySee ( CreatureObject Creature ) : bool

This function assesses whether or not a creature is visible to any member of the party.

GetFarthest ( CreatureObject Source, List Creatures ) : CreatureObject
GetNearest ( CreatureObject Source, List Creatures ) : CreatureObject
PromotePartyLeader ( CreatureObject PartyLeader ) : void

Promote a creature in the party to party leader.

RemovePartyEnemy ( CreatureObject PartyEnemy ) : void
RemovePartyMember ( CreatureObject Creature ) : void

Remove a party member. If the party member was the last in the party, then the party is dissolved.

Private Methods

Method Description
_LooksLikeSpellcaster ( CreatureObject Creature ) : bool

This function seeks signs of a spellcaster, looking for visible paraphenalia. Visibility is assumed, and should be checked separately.

Method Details

AIParty() public method

Create a new, empty AI party.
public AIParty ( ACR_CreatureBehavior.AIPartyManager PartyManager ) : System
PartyManager ACR_CreatureBehavior.AIPartyManager Supplies the party manager that the /// party will be attached to.
return System

AddPartyEnemy() public method

public AddPartyEnemy ( CreatureObject PartyEnemy ) : void
PartyEnemy CreatureObject
return void

AddPartyMember() public method

Add a party member.
public AddPartyMember ( CreatureObject Creature ) : void
Creature CreatureObject Supplies the creature to add.
return void

CanPartyHear() public method

public CanPartyHear ( CreatureObject Creature ) : bool
Creature CreatureObject
return bool

CanPartySee() public method

This function assesses whether or not a creature is visible to any member of the party.
public CanPartySee ( CreatureObject Creature ) : bool
Creature CreatureObject The creature that the party is looking for
return bool

GetFarthest() public method

public GetFarthest ( CreatureObject Source, List Creatures ) : CreatureObject
Source CreatureObject
Creatures List
return CreatureObject

GetNearest() public method

public GetNearest ( CreatureObject Source, List Creatures ) : CreatureObject
Source CreatureObject
Creatures List
return CreatureObject

PromotePartyLeader() public method

Promote a creature in the party to party leader.
public PromotePartyLeader ( CreatureObject PartyLeader ) : void
PartyLeader CreatureObject Supplies the new party leader.
return void

RemovePartyEnemy() public method

public RemovePartyEnemy ( CreatureObject PartyEnemy ) : void
PartyEnemy CreatureObject
return void

RemovePartyMember() public method

Remove a party member. If the party member was the last in the party, then the party is dissolved.
public RemovePartyMember ( CreatureObject Creature ) : void
Creature CreatureObject Supplies the creature to remove.
return void

Property Details

CleanUpEnemies public property

The list of enemies who are near death, and should be ignored until it's time to clean up.
public List CleanUpEnemies
return List

Enemies public property

The list of known enemies of the party
public List Enemies
return List

EnemiesLost public property

The list of enemies who we know exist, but can't see.
public List EnemiesLost
return List

EnemyHardTargets public property

The list of enemies who appear to be difficult to hit.
public List EnemyHardTargets
return List

EnemyHealers public property

The list of enemies who have been observed casting healing magic.
public List EnemyHealers
return List

EnemySoftTargets public property

Ths list of enemies who appear to be easy to hit.
public List EnemySoftTargets
return List

EnemySpellcasters public property

The list of enemies who have been observed casting spells.
public List EnemySpellcasters
return List

PartyAnimals public property

The list of party members who aren't smart enough to behave tactically, but are smart enough to have some sense of self preservation.
public List PartyAnimals
return List

PartyArchers public property

The list of party members who prefer ranged combat.
public List PartyArchers
return List

PartyBuffs public property

The list of party members focused primarily on support magic.
public List PartyBuffs
return List

PartyControls public property

The list of party members focused primarily on crowd control and battlefield manipulation.
public List PartyControls
return List

PartyCowards public property

The list of party members who don't want to fight, and will run for help.
public List PartyCowards
return List

PartyFlanks public property

The list of party members who flank in melee combat to inflict damage.
public List PartyFlanks
return List

PartyLeader public property

The designated party leader (if one is still alive).
public CreatureObject,ACR_CreatureBehavior PartyLeader
return CreatureObject

PartyLosses public property

An arbitrary measure of how badly the party is being beaten.
public int PartyLosses
return int

PartyManager public property

The associated party manager.
public AIPartyManager,ACR_CreatureBehavior PartyManager
return ACR_CreatureBehavior.AIPartyManager

PartyMedics public property

The list of party members focused primarily on healing magic.
public List PartyMedics
return List

PartyMembers public property

The list of objects in the party.
public List PartyMembers
return List

PartyMindless public property

The list of party members who are incapable of thought, and will thrash out mindlessly.
public List PartyMindless
return List

PartyNukes public property

The list of party members focused primarily on attack magic.
public List PartyNukes
return List

PartyShocks public property

The list of party members focused primarily on
public List PartyShocks
return List

PartySkrimishers public property

The list of party members who specialise in short highly-mobile melee strikes.
public List PartySkrimishers
return List

PartyTanks public property

The list of party members focused primarily on tactical defense and holding ground.
public List PartyTanks
return List