Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ResupplyTaskSolver Interface Reference
Inheritance diagram for SCR_ResupplyTaskSolver:
SCR_TaskSolverBase

Public Member Functions

override void SetAiGroup (SCR_AIGroup aiGroup)
 
void SetResupplyTaskSolverEntry (SCR_ResupplyTaskSolverEntry entry)
 Configures this solver with a resupply solver entry.
 
SCR_VehicleConditionManager GetVehicleConditionManager ()
 
SCR_AIGroupConditionManager GetAiGroupConditionManager ()
 
ScriptInvokerInt2 GetOnResupplyTaskSolverStateChanged ()
 
SCR_EResupplyTaskSolverState GetResupplyTaskSolverState ()
 
void ResetToInitialState ()
 Reset solver state to initial (inactive)
 
void SetResupplyTaskSolverState (SCR_EResupplyTaskSolverState state)
 
override void Init (SCR_Task task, SCR_TaskSolverContext context)
 Initialize solver with task and context. Registers events.
 
override void StartTaskSolving ()
 Start the task-solving process, branching to appropriate initial action.
 
SCR_BoardingEntityWaypoint CreateBoardingVehicleWaypoint ()
 
SCR_AIWaypoint CreateMoveWaypointToSourceBase ()
 
void SetSourceBase (SCR_CampaignMilitaryBaseComponent sourceBase)
 
void SetVehicle (Vehicle vehicle)
 
override void Update (float timeSlice)
 Periodic update for resource/availability checks.
 
void SCR_ResupplyTaskSolver ()
 
- Public Member Functions inherited from SCR_TaskSolverBase
int GetId ()
 
void SetId (int id)
 
OnTaskSolverStateChangedInvoker GetOnStateChanged ()
 
SCR_Task GetTask ()
 
SCR_ETaskSolverState GetState ()
 
void FailTaskSolving ()
 Marks the task solver as failed.
 
void Deinit ()
 

Protected Member Functions

void FailResupplyTaskSolving (SCR_EResupplyTaskSolverErrorState errorState=SCR_EResupplyTaskSolverErrorState.DEFAULT)
 Mark solver as failed, clean up, and provide error reporting.
 
override void CompleteTaskSolving ()
 Mark solver as completed with cleanup.
 
string GetTransportGroupName ()
 
void PreventMaxLOD (SCR_AIGroup aiGroup)
 
void AllowMaxLOD (SCR_AIGroup aiGroup)
 
void AddOnBoardingCompletedHandler ()
 
void RemoveOnBoardingCompletedHandler ()
 
void AddOnLoadSuppliesCompletedHandler ()
 
void RemoveOnLoadSuppliesCompletedHandler ()
 
void AddOnMoveToSuppliedBaseCompletedHandler ()
 
void RemoveOnMoveToSuppliedBaseCompletedHandler ()
 
void AddOnMoveToSourceBaseCompletedHandler ()
 
void RemoveOnMoveToSourceBaseCompletedHandler ()
 
void AddOnUnloadSuppliesCompletedHandler ()
 
void RemoveOnUnloadSuppliesCompletedHandler ()
 
SCR_ResourceContainer GetVehicleSuppliesContainer ()
 
void CompleteTransportGroupCurrentWaypoint ()
 
void CompleteAllWaypoints ()
 
void OnWaypointFailed (int moveResult, IEntity vehicleUsed, bool isWaypointRelated, vector moveLocation)
 
SCR_AIWaypoint CreateMoveWaypoint (SCR_EResupplyTaskSolverState resupplySolverState, vector waypointPosition, float waypointCompletionRadius)
 
SCR_LoadSuppliesWaypoint CreateLoadSuppliesWaypoint ()
 
void CreateMoveWaypointToSourceOrSuppliedBase ()
 
void OnBoardingCompleted (AIWaypoint waypoint)
 
void OnMoveToSourceBaseCompleted (SCR_AIWaypoint waypoint)
 
void OnLoadSuppliesCompleted (SCR_AIWaypoint waypoint)
 
void OnMoveToSuppliedBaseCompleted (SCR_AIWaypoint waypoint)
 
void OnUnloadSuppliesCompleted (SCR_AIWaypoint waypoint)
 
SCR_AIWaypoint SpawnWaypoint (Resource waypointPrefab, vector origin)
 
SCR_BoardingWaypoint SpawnGetOutWaypoint ()
 
SCR_BoardingEntityWaypoint SpawnBoardingWaypoint ()
 
SCR_AIWaypoint SpawnMoveWaypoint (vector position)
 
SCR_AIWaypoint SpawnLoadSupplyWaypoint ()
 
SCR_UnloadSuppliesWaypoint SpawnUnloadSupplyWaypoint ()
 
- Protected Member Functions inherited from SCR_TaskSolverBase
void SetState (SCR_ETaskSolverState state)
 
void OnTaskStateChanged (SCR_Task task, SCR_ETaskState newState)
 

Protected Attributes

SCR_EResupplyTaskSolverState m_eResupplySolverState = SCR_EResupplyTaskSolverState.INACTIVE
 
SCR_AIGroupUtilityComponent m_TransportGroupUtility
 
Vehicle m_Vehicle
 
SCR_AIVehicleUsageComponent m_AiVehicleUsage
 
EAIGroupCombatMode m_ePreviousGroupCombatMode
 
SCR_BoardingEntityWaypoint m_BoardingWaypoint
 
SCR_AIWaypoint m_MoveToSuppliedBaseWaypoint
 
SCR_AIWaypoint m_MoveToSourceBaseWaypoint
 
SCR_LoadSuppliesWaypoint m_LoadSuppliesWaypoint
 
SCR_UnloadSuppliesWaypoint m_UnloadSuppliesWaypoint
 
SCR_ResupplyCampaignMilitaryBaseTaskEntity m_ResupplyTask
 
SCR_CampaignMilitaryBaseComponent m_SourceBase
 
ref SCR_VehicleConditionManager m_VehicleConditionManager
 
ref SCR_AIGroupConditionManager m_AiGroupConditionManager
 
ref SCR_ResupplyTaskSolverEntry m_ResupplyTaskSolverEntry
 
ref ScriptInvokerInt2 m_OnResupplyTaskSolverStateChanged
 
- Protected Attributes inherited from SCR_TaskSolverBase
SCR_Task m_Task
 
SCR_AIGroup m_AiGroup
 
SCR_ETaskSolverState m_eState
 
int m_iId = -1
 
ref OnTaskSolverStateChangedInvoker m_OnStateChanged
 

Constructor & Destructor Documentation

◆ SCR_ResupplyTaskSolver()

void SCR_ResupplyTaskSolver.SCR_ResupplyTaskSolver ( )

Member Function Documentation

◆ AddOnBoardingCompletedHandler()

void SCR_ResupplyTaskSolver.AddOnBoardingCompletedHandler ( )
protected

◆ AddOnLoadSuppliesCompletedHandler()

void SCR_ResupplyTaskSolver.AddOnLoadSuppliesCompletedHandler ( )
protected

◆ AddOnMoveToSourceBaseCompletedHandler()

void SCR_ResupplyTaskSolver.AddOnMoveToSourceBaseCompletedHandler ( )
protected

◆ AddOnMoveToSuppliedBaseCompletedHandler()

void SCR_ResupplyTaskSolver.AddOnMoveToSuppliedBaseCompletedHandler ( )
protected

◆ AddOnUnloadSuppliesCompletedHandler()

void SCR_ResupplyTaskSolver.AddOnUnloadSuppliesCompletedHandler ( )
protected

◆ AllowMaxLOD()

void SCR_ResupplyTaskSolver.AllowMaxLOD ( SCR_AIGroup aiGroup)
protected

◆ CompleteAllWaypoints()

void SCR_ResupplyTaskSolver.CompleteAllWaypoints ( )
protected

◆ CompleteTaskSolving()

override void SCR_ResupplyTaskSolver.CompleteTaskSolving ( )
protected

Mark solver as completed with cleanup.

Implements SCR_TaskSolverBase.

◆ CompleteTransportGroupCurrentWaypoint()

void SCR_ResupplyTaskSolver.CompleteTransportGroupCurrentWaypoint ( )
protected

◆ CreateBoardingVehicleWaypoint()

SCR_BoardingEntityWaypoint SCR_ResupplyTaskSolver.CreateBoardingVehicleWaypoint ( )

◆ CreateLoadSuppliesWaypoint()

SCR_LoadSuppliesWaypoint SCR_ResupplyTaskSolver.CreateLoadSuppliesWaypoint ( )
protected

◆ CreateMoveWaypoint()

SCR_AIWaypoint SCR_ResupplyTaskSolver.CreateMoveWaypoint ( SCR_EResupplyTaskSolverState resupplySolverState,
vector waypointPosition,
float waypointCompletionRadius )
protected

◆ CreateMoveWaypointToSourceBase()

SCR_AIWaypoint SCR_ResupplyTaskSolver.CreateMoveWaypointToSourceBase ( )

◆ CreateMoveWaypointToSourceOrSuppliedBase()

void SCR_ResupplyTaskSolver.CreateMoveWaypointToSourceOrSuppliedBase ( )
protected

◆ FailResupplyTaskSolving()

void SCR_ResupplyTaskSolver.FailResupplyTaskSolving ( SCR_EResupplyTaskSolverErrorState errorState = SCR_EResupplyTaskSolverErrorState::DEFAULT)
protected

Mark solver as failed, clean up, and provide error reporting.

◆ GetAiGroupConditionManager()

SCR_AIGroupConditionManager SCR_ResupplyTaskSolver.GetAiGroupConditionManager ( )

◆ GetOnResupplyTaskSolverStateChanged()

ScriptInvokerInt2 SCR_ResupplyTaskSolver.GetOnResupplyTaskSolverStateChanged ( )

◆ GetResupplyTaskSolverState()

SCR_EResupplyTaskSolverState SCR_ResupplyTaskSolver.GetResupplyTaskSolverState ( )

◆ GetTransportGroupName()

string SCR_ResupplyTaskSolver.GetTransportGroupName ( )
protected

◆ GetVehicleConditionManager()

SCR_VehicleConditionManager SCR_ResupplyTaskSolver.GetVehicleConditionManager ( )

◆ GetVehicleSuppliesContainer()

SCR_ResourceContainer SCR_ResupplyTaskSolver.GetVehicleSuppliesContainer ( )
protected

◆ Init()

override void SCR_ResupplyTaskSolver.Init ( SCR_Task task,
SCR_TaskSolverContext context )

Initialize solver with task and context. Registers events.

Implements SCR_TaskSolverBase.

◆ OnBoardingCompleted()

void SCR_ResupplyTaskSolver.OnBoardingCompleted ( AIWaypoint waypoint)
protected

◆ OnLoadSuppliesCompleted()

void SCR_ResupplyTaskSolver.OnLoadSuppliesCompleted ( SCR_AIWaypoint waypoint)
protected

◆ OnMoveToSourceBaseCompleted()

void SCR_ResupplyTaskSolver.OnMoveToSourceBaseCompleted ( SCR_AIWaypoint waypoint)
protected

◆ OnMoveToSuppliedBaseCompleted()

void SCR_ResupplyTaskSolver.OnMoveToSuppliedBaseCompleted ( SCR_AIWaypoint waypoint)
protected

◆ OnUnloadSuppliesCompleted()

void SCR_ResupplyTaskSolver.OnUnloadSuppliesCompleted ( SCR_AIWaypoint waypoint)
protected

◆ OnWaypointFailed()

void SCR_ResupplyTaskSolver.OnWaypointFailed ( int moveResult,
IEntity vehicleUsed,
bool isWaypointRelated,
vector moveLocation )
protected

◆ PreventMaxLOD()

void SCR_ResupplyTaskSolver.PreventMaxLOD ( SCR_AIGroup aiGroup)
protected

◆ RemoveOnBoardingCompletedHandler()

void SCR_ResupplyTaskSolver.RemoveOnBoardingCompletedHandler ( )
protected

◆ RemoveOnLoadSuppliesCompletedHandler()

void SCR_ResupplyTaskSolver.RemoveOnLoadSuppliesCompletedHandler ( )
protected

◆ RemoveOnMoveToSourceBaseCompletedHandler()

void SCR_ResupplyTaskSolver.RemoveOnMoveToSourceBaseCompletedHandler ( )
protected

◆ RemoveOnMoveToSuppliedBaseCompletedHandler()

void SCR_ResupplyTaskSolver.RemoveOnMoveToSuppliedBaseCompletedHandler ( )
protected

◆ RemoveOnUnloadSuppliesCompletedHandler()

void SCR_ResupplyTaskSolver.RemoveOnUnloadSuppliesCompletedHandler ( )
protected

◆ ResetToInitialState()

void SCR_ResupplyTaskSolver.ResetToInitialState ( )

Reset solver state to initial (inactive)

◆ SetAiGroup()

override void SCR_ResupplyTaskSolver.SetAiGroup ( SCR_AIGroup aiGroup)

Implements SCR_TaskSolverBase.

◆ SetResupplyTaskSolverEntry()

void SCR_ResupplyTaskSolver.SetResupplyTaskSolverEntry ( SCR_ResupplyTaskSolverEntry entry)

Configures this solver with a resupply solver entry.

◆ SetResupplyTaskSolverState()

void SCR_ResupplyTaskSolver.SetResupplyTaskSolverState ( SCR_EResupplyTaskSolverState state)

◆ SetSourceBase()

void SCR_ResupplyTaskSolver.SetSourceBase ( SCR_CampaignMilitaryBaseComponent sourceBase)

◆ SetVehicle()

void SCR_ResupplyTaskSolver.SetVehicle ( Vehicle vehicle)

◆ SpawnBoardingWaypoint()

SCR_BoardingEntityWaypoint SCR_ResupplyTaskSolver.SpawnBoardingWaypoint ( )
protected

◆ SpawnGetOutWaypoint()

SCR_BoardingWaypoint SCR_ResupplyTaskSolver.SpawnGetOutWaypoint ( )
protected

◆ SpawnLoadSupplyWaypoint()

SCR_AIWaypoint SCR_ResupplyTaskSolver.SpawnLoadSupplyWaypoint ( )
protected

◆ SpawnMoveWaypoint()

SCR_AIWaypoint SCR_ResupplyTaskSolver.SpawnMoveWaypoint ( vector position)
protected

◆ SpawnUnloadSupplyWaypoint()

SCR_UnloadSuppliesWaypoint SCR_ResupplyTaskSolver.SpawnUnloadSupplyWaypoint ( )
protected

◆ SpawnWaypoint()

SCR_AIWaypoint SCR_ResupplyTaskSolver.SpawnWaypoint ( Resource waypointPrefab,
vector origin )
protected

◆ StartTaskSolving()

override void SCR_ResupplyTaskSolver.StartTaskSolving ( )

Start the task-solving process, branching to appropriate initial action.

Implements SCR_TaskSolverBase.

◆ Update()

override void SCR_ResupplyTaskSolver.Update ( float timeSlice)

Periodic update for resource/availability checks.

Implements SCR_TaskSolverBase.

Member Data Documentation

◆ m_AiGroupConditionManager

ref SCR_AIGroupConditionManager SCR_ResupplyTaskSolver.m_AiGroupConditionManager
protected

◆ m_AiVehicleUsage

SCR_AIVehicleUsageComponent SCR_ResupplyTaskSolver.m_AiVehicleUsage
protected

◆ m_BoardingWaypoint

SCR_BoardingEntityWaypoint SCR_ResupplyTaskSolver.m_BoardingWaypoint
protected

◆ m_ePreviousGroupCombatMode

EAIGroupCombatMode SCR_ResupplyTaskSolver.m_ePreviousGroupCombatMode
protected

◆ m_eResupplySolverState

SCR_EResupplyTaskSolverState SCR_ResupplyTaskSolver.m_eResupplySolverState = SCR_EResupplyTaskSolverState.INACTIVE
protected

◆ m_LoadSuppliesWaypoint

SCR_LoadSuppliesWaypoint SCR_ResupplyTaskSolver.m_LoadSuppliesWaypoint
protected

◆ m_MoveToSourceBaseWaypoint

SCR_AIWaypoint SCR_ResupplyTaskSolver.m_MoveToSourceBaseWaypoint
protected

◆ m_MoveToSuppliedBaseWaypoint

SCR_AIWaypoint SCR_ResupplyTaskSolver.m_MoveToSuppliedBaseWaypoint
protected

◆ m_OnResupplyTaskSolverStateChanged

ref ScriptInvokerInt2 SCR_ResupplyTaskSolver.m_OnResupplyTaskSolverStateChanged
protected

◆ m_ResupplyTask

SCR_ResupplyCampaignMilitaryBaseTaskEntity SCR_ResupplyTaskSolver.m_ResupplyTask
protected

◆ m_ResupplyTaskSolverEntry

ref SCR_ResupplyTaskSolverEntry SCR_ResupplyTaskSolver.m_ResupplyTaskSolverEntry
protected

◆ m_SourceBase

SCR_CampaignMilitaryBaseComponent SCR_ResupplyTaskSolver.m_SourceBase
protected

◆ m_TransportGroupUtility

SCR_AIGroupUtilityComponent SCR_ResupplyTaskSolver.m_TransportGroupUtility
protected

◆ m_UnloadSuppliesWaypoint

SCR_UnloadSuppliesWaypoint SCR_ResupplyTaskSolver.m_UnloadSuppliesWaypoint
protected

◆ m_Vehicle

Vehicle SCR_ResupplyTaskSolver.m_Vehicle
protected

◆ m_VehicleConditionManager

ref SCR_VehicleConditionManager SCR_ResupplyTaskSolver.m_VehicleConditionManager
protected

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