C# Class CS_AIAgent, Unity-AI-SpyVsGuard

Inheritance: MonoBehaviour, CS_IGOAP
Mostra file Open project: danielmccluskey/Unity-AI-SpyVsGuard

Public Properties

Property Type Description
m_bInterrupt bool
m_bKnowsTotemLocation bool
m_fAggroDistance float
m_fArrivalDistance float

Public Methods

Method Description
AbortPlan ( CS_GOAPAction, a_FailedAction ) : void
AllActionsFinished ( ) : void
CreateGoalState ( ) : object>>.HashSet
GetWorldState ( ) : object>>.HashSet
MoveAgentToAction ( CS_GOAPAction, a_NextAction ) : bool

Function for the move state of the FSM, tells the agent how to move to its target

PlanFailed ( HashSet, a_kvpFailedGoal ) : void

Handles what happens when the plan fails (Unfinished)

PlanFound ( HashSet, a_kvpGoal, Queue, a_qActionQueue ) : void

Handles what happens when the agent finds a play (Unfinished)

Update ( ) : void

Private Methods

Method Description
Start ( ) : void

Method Details

AbortPlan() public method

public AbortPlan ( CS_GOAPAction, a_FailedAction ) : void
a_FailedAction CS_GOAPAction,
return void

AllActionsFinished() public method

public AllActionsFinished ( ) : void
return void

CreateGoalState() public abstract method

public abstract CreateGoalState ( ) : object>>.HashSet
return object>>.HashSet

GetWorldState() public method

public GetWorldState ( ) : object>>.HashSet
return object>>.HashSet

MoveAgentToAction() public method

Function for the move state of the FSM, tells the agent how to move to its target
public MoveAgentToAction ( CS_GOAPAction, a_NextAction ) : bool
a_NextAction CS_GOAPAction, Action to do after the agent arrives at the target
return bool

PlanFailed() public method

Handles what happens when the plan fails (Unfinished)
public PlanFailed ( HashSet, a_kvpFailedGoal ) : void
a_kvpFailedGoal HashSet,
return void

PlanFound() public method

Handles what happens when the agent finds a play (Unfinished)
public PlanFound ( HashSet, a_kvpGoal, Queue, a_qActionQueue ) : void
a_kvpGoal HashSet,
a_qActionQueue Queue,
return void

Update() public method

public Update ( ) : void
return void

Property Details

m_bInterrupt public_oe property

public bool m_bInterrupt
return bool

m_bKnowsTotemLocation public_oe property

public bool m_bKnowsTotemLocation
return bool

m_fAggroDistance public_oe property

public float m_fAggroDistance
return float

m_fArrivalDistance public_oe property

public float m_fArrivalDistance
return float