Third Person Cover Shooter  1.6
CoverShooter.AIBaseRegrouper Class Reference

Regroups other brains around the AI. More...

Inheritance diagram for CoverShooter.AIBaseRegrouper:
CoverShooter.AIBase CoverShooter.AIRegrouperButton CoverShooter.AIRegrouperCompany CoverShooter.AIRegrouperHealth CoverShooter.AIRegrouperProximity CoverShooter.AIRegrouperRetreat

Public Member Functions

void TakePosition (Vector3 value)
 Registers a taken position. More...
 
bool IsPositionTaken (Vector3 position, float threshold=1.0f)
 Returns true if the given position has been taken by one of the regrouping AIs. More...
 
void Regroup ()
 Finds nearby allies and tells them to regroup. More...
 
- Public Member Functions inherited from CoverShooter.AIBase
void Message (string name)
 Sends a message to other components. More...
 
void Message (string name, object value)
 Sends a message to other components. More...
 

Public Attributes

float Radius = 8
 Maximum distance at which the regrouped actors will stand next to the regrouper. More...
 
float UncoveredDuration = 8
 Time in seconds the units will maintain their new uncovered positions before searching for better spots. More...
 
float CallDistance = 20
 Distance at which to search for friendly AI that will be regrouped. More...
 
int Limit = 6
 Maximum number of regrouped units. More...
 

Protected Member Functions

virtual void Awake ()
 

Properties

List< ActorFriends [get]
 All friends that are regrouping. More...
 
BaseBrain Brain [get]
 

Detailed Description

Regroups other brains around the AI.

Member Function Documentation

◆ Awake()

virtual void CoverShooter.AIBaseRegrouper.Awake ( )
protectedvirtual

◆ IsPositionTaken()

bool CoverShooter.AIBaseRegrouper.IsPositionTaken ( Vector3  position,
float  threshold = 1.0f 
)

Returns true if the given position has been taken by one of the regrouping AIs.

◆ Regroup()

void CoverShooter.AIBaseRegrouper.Regroup ( )

Finds nearby allies and tells them to regroup.

◆ TakePosition()

void CoverShooter.AIBaseRegrouper.TakePosition ( Vector3  value)

Registers a taken position.

Member Data Documentation

◆ CallDistance

float CoverShooter.AIBaseRegrouper.CallDistance = 20

Distance at which to search for friendly AI that will be regrouped.

◆ Limit

int CoverShooter.AIBaseRegrouper.Limit = 6

Maximum number of regrouped units.

◆ Radius

float CoverShooter.AIBaseRegrouper.Radius = 8

Maximum distance at which the regrouped actors will stand next to the regrouper.

◆ UncoveredDuration

float CoverShooter.AIBaseRegrouper.UncoveredDuration = 8

Time in seconds the units will maintain their new uncovered positions before searching for better spots.

Property Documentation

◆ Brain

BaseBrain CoverShooter.AIBaseRegrouper.Brain
getprotected

◆ Friends

List<Actor> CoverShooter.AIBaseRegrouper.Friends
get

All friends that are regrouping.


The documentation for this class was generated from the following file: