M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.Missions.AgentBehaviors.AgentBehaviorGroup Class Reference

Inherited by SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup, SandBox.Missions.AgentBehaviors.DailyBehaviorGroup, and SandBox.Missions.AgentBehaviors.InterruptingBehaviorGroup.

Public Member Functions

AddBehavior< T > ()
 
GetBehavior< T > ()
 
bool HasBehavior< T > ()
 
void RemoveBehavior< T > ()
 
void SetScriptedBehavior< T > ()
 
void DisableScriptedBehavior ()
 
void DisableAllBehaviors ()
 
AgentBehavior GetActiveBehavior ()
 
virtual void Tick (float dt, bool isSimulation)
 
virtual void ConversationTick ()
 
virtual void OnAgentRemoved (Agent agent)
 
virtual float GetScore (bool isSimulation)
 
virtual void ForceThink (float inSeconds)
 

Public Attributes

AgentNavigator Navigator
 
List< AgentBehaviorBehaviors
 

Protected Member Functions

 AgentBehaviorGroup (AgentNavigator navigator, Mission mission)
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 

Protected Attributes

float CheckBehaviorTime = 5.0f
 
Timer CheckBehaviorTimer
 

Properties

Agent OwnerAgent [get]
 
AgentBehavior ScriptedBehavior [get]
 
bool IsActive [get, set]
 
Mission Mission [get]
 

Constructor & Destructor Documentation

◆ AgentBehaviorGroup()

SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.AgentBehaviorGroup ( AgentNavigator  navigator,
Mission  mission 
)
protected

Member Function Documentation

◆ AddBehavior< T >()

T SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.AddBehavior< T > ( )
Type Constraints
T :AgentBehavior 

◆ GetBehavior< T >()

T SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.GetBehavior< T > ( )
Type Constraints
T :AgentBehavior 

◆ HasBehavior< T >()

bool SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.HasBehavior< T > ( )
Type Constraints
T :AgentBehavior 

◆ RemoveBehavior< T >()

void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.RemoveBehavior< T > ( )
Type Constraints
T :AgentBehavior 

◆ SetScriptedBehavior< T >()

void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.SetScriptedBehavior< T > ( )
Type Constraints
T :AgentBehavior 

◆ DisableScriptedBehavior()

void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.DisableScriptedBehavior ( )

◆ DisableAllBehaviors()

void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.DisableAllBehaviors ( )

◆ GetActiveBehavior()

AgentBehavior SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.GetActiveBehavior ( )

◆ Tick()

virtual void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.Tick ( float  dt,
bool  isSimulation 
)
virtual

◆ ConversationTick()

virtual void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.ConversationTick ( )
virtual

◆ OnAgentRemoved()

virtual void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.OnAgentRemoved ( Agent  agent)
virtual

◆ OnActivate()

virtual void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.OnActivate ( )
protectedvirtual

◆ OnDeactivate()

virtual void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.OnDeactivate ( )
protectedvirtual

◆ GetScore()

virtual float SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.GetScore ( bool  isSimulation)
virtual

◆ ForceThink()

virtual void SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.ForceThink ( float  inSeconds)
virtual

Member Data Documentation

◆ Navigator

AgentNavigator SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.Navigator

◆ Behaviors

List<AgentBehavior> SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.Behaviors

◆ CheckBehaviorTime

float SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.CheckBehaviorTime = 5.0f
protected

◆ CheckBehaviorTimer

Timer SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.CheckBehaviorTimer
protected

Property Documentation

◆ OwnerAgent

Agent SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.OwnerAgent
get

◆ ScriptedBehavior

AgentBehavior SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.ScriptedBehavior
get

◆ IsActive

bool SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.IsActive
getset

◆ Mission

Mission SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.Mission
get