Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PlayerControllerCommandingComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_PlayerControllerCommandingComponentClass
 

Functions

SCR_PlayerControllerCommandingComponentClass ScriptComponentClass Attribute ("{ECC45EC468D76CF4}Configs/Commanding/CommandingMenu.conf")
 
override protected void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
protected void OnControllerTakeControl (SCR_RadialMenuController controller)
 
void SetupMapListener ()
 
void RemoveMapListener ()
 
void SetupPlayerRadialMenu (IEntity owner)
 
void OnMapOpen (MapConfiguration config)
 
void OnMapClose (MapConfiguration config)
 
void SetupMapRadialMenu ()
 
void OnMapCommandPerformed (SCR_SelectionMenuEntry element, float[] worldPos)
 
void OnGroupLeaderChanged (int groupID, int playerID)
 
void OnGroupChanged (int groupID)
 
void OnRadialMenuPerformed (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry)
 
void OnRadialMenuFailed ()
 
void PrepareExecuteCommand (string commandName, vector targetPosition="0 0 0")
 
void ExecuteCommand (vector targetPosition, IEntity tracedEntity)
 
void RPC_RequestExecuteCommand (int commandIndex, RplId cursorTargetID, RplId groupRplID, vector targetPoisition, int playerID)
 
void CommandExecutedCallback (int commandIndex)
 
void RPC_CommandExecutedCallback (int commandIndex)
 
void PlayCommandGesture (int commandIndex)
 
void UpdateRadialMenu (IEntity owner, bool isOpen)
 
void AddElementsFromCategory (SCR_PlayerCommandingMenuCategoryElement category, SCR_SelectionMenuCategoryEntry rootCategory=null)
 
void AddElementsFromCategoryToMap (notnull SCR_PlayerCommandingMenuCategoryElement category, SCR_SelectionMenuCategoryEntry rootCategory=null)
 
void InsertElementToMapRadial (SCR_PlayerCommandingMenuBaseElement element, notnull SCR_PlayerCommandingMenuCategoryElement category, SCR_SelectionMenuCategoryEntry mapCategory)
 
SCR_SelectionMenuEntry AddRadialMenuElement (SCR_PlayerCommandingMenuBaseElement newElement, SCR_SelectionMenuCategoryEntry parentCategory=null)
 
SCR_SelectionMenuEntry AddCategoryElement (SCR_PlayerCommandingMenuCategoryElement category, SCR_SelectionMenuCategoryEntry parentCategory=null)
 
SCR_SelectionMenuEntry AddCommandElement (SCR_PlayerCommandingMenuCommand command, SCR_SelectionMenuCategoryEntry parentCategory=null)
 
void OnPlayerRadialMenuOpen ()
 

Variables

Configs Commanding CommandingMapMenu conf protected ResourceName m_sCommandingMapMenuConfigPath
 
protected ref SCR_RadialMenuController m_RadialMenuController
 
protected SCR_RadialMenu m_RadialMenu
 
protected ref SCR_PlayerCommandingMenuConfig m_CommandingMenuConfig
 
protected IEntity m_SelectedEntity
 
protected SCR_CommandingManagerComponent m_CommandingManager
 
protected SCR_MapRadialUI m_MapContextualMenu
 
protected string m_sExecutedCommandName
 
protected bool m_bIsCommandExecuting = false
 
protected bool m_bSlaveGroupRequested = false
 
protected ref SCR_PhysicsHelper m_PhysicsHelper
 

Function Documentation

◆ AddCategoryElement()

SCR_SelectionMenuEntry AddCategoryElement ( SCR_PlayerCommandingMenuCategoryElement  category,
SCR_SelectionMenuCategoryEntry  parentCategory = null 
)
Parameters
[in]categorycannot be null
[in]parentCategory
Returns

Definition at line 536 of file SCR_PlayerControllerCommandingComponent.c.

◆ AddCommandElement()

SCR_SelectionMenuEntry AddCommandElement ( SCR_PlayerCommandingMenuCommand  command,
SCR_SelectionMenuCategoryEntry  parentCategory = null 
)
Parameters
[in]commandcannot be null
[in]parentCategory
Returns

Definition at line 558 of file SCR_PlayerControllerCommandingComponent.c.

◆ AddElementsFromCategory()

void AddElementsFromCategory ( SCR_PlayerCommandingMenuCategoryElement  category,
SCR_SelectionMenuCategoryEntry  rootCategory = null 
)
Parameters
[in]categorycannot be null
[in]rootCategory

Definition at line 438 of file SCR_PlayerControllerCommandingComponent.c.

◆ AddElementsFromCategoryToMap()

void AddElementsFromCategoryToMap ( notnull SCR_PlayerCommandingMenuCategoryElement  category,
SCR_SelectionMenuCategoryEntry  rootCategory = null 
)
Parameters
[in]categorycannot be null

Definition at line 466 of file SCR_PlayerControllerCommandingComponent.c.

◆ AddRadialMenuElement()

SCR_SelectionMenuEntry AddRadialMenuElement ( SCR_PlayerCommandingMenuBaseElement  newElement,
SCR_SelectionMenuCategoryEntry  parentCategory = null 
)
Parameters
[in]newElement
[in]parentCategory
Returns

Definition at line 518 of file SCR_PlayerControllerCommandingComponent.c.

◆ Attribute()

SCR_PlayerControllerCommandingComponentClass ScriptComponentClass Attribute ( "{ECC45EC468D76CF4}Configs/Commanding/CommandingMenu.conf )

Definition at line 8 of file SCR_PlayerControllerCommandingComponent.c.

◆ CommandExecutedCallback()

void CommandExecutedCallback ( int  commandIndex)
Parameters
[in]commandIndex

Definition at line 366 of file SCR_PlayerControllerCommandingComponent.c.

◆ ExecuteCommand()

void ExecuteCommand ( vector  targetPosition,
IEntity  tracedEntity 
)
Parameters
[in]targetPosition
[in]tracedEntity

Definition at line 288 of file SCR_PlayerControllerCommandingComponent.c.

◆ InsertElementToMapRadial()

void InsertElementToMapRadial ( SCR_PlayerCommandingMenuBaseElement  element,
notnull SCR_PlayerCommandingMenuCategoryElement  category,
SCR_SelectionMenuCategoryEntry  mapCategory 
)
Parameters
[in]elementcannot be null
[in]category
[in]mapCategory

Definition at line 492 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnControllerTakeControl()

protected void OnControllerTakeControl ( SCR_RadialMenuController  controller)

Definition at line 86 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnGroupChanged()

void OnGroupChanged ( int  groupID)
Parameters
[in]groupID

Definition at line 211 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnGroupLeaderChanged()

void OnGroupLeaderChanged ( int  groupID,
int  playerID 
)
Parameters
[in]groupID
[in]playerID

Definition at line 196 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnMapClose()

void OnMapClose ( MapConfiguration  config)
Parameters
[in]config

Definition at line 150 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnMapCommandPerformed()

void OnMapCommandPerformed ( SCR_SelectionMenuEntry  element,
float[]  worldPos 
)
Parameters
[in]element
[in]worldPos

Definition at line 176 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnMapOpen()

void OnMapOpen ( MapConfiguration  config)
Parameters
[in]config

Definition at line 138 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnPlayerRadialMenuOpen()

void OnPlayerRadialMenuOpen ( )

Definition at line 590 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnRadialMenuFailed()

void OnRadialMenuFailed ( )

Definition at line 242 of file SCR_PlayerControllerCommandingComponent.c.

◆ OnRadialMenuPerformed()

void OnRadialMenuPerformed ( SCR_SelectionMenu  menu,
SCR_SelectionMenuEntry  entry 
)
Parameters
[in]menu
[in]entry

Definition at line 232 of file SCR_PlayerControllerCommandingComponent.c.

◆ PlayCommandGesture()

void PlayCommandGesture ( int  commandIndex)
Parameters
[in]commandIndex

Definition at line 383 of file SCR_PlayerControllerCommandingComponent.c.

◆ PrepareExecuteCommand()

void PrepareExecuteCommand ( string  commandName,
vector  targetPosition = "0 0 0" 
)
Parameters
[in]commandName

Definition at line 250 of file SCR_PlayerControllerCommandingComponent.c.

◆ RemoveMapListener()

void RemoveMapListener ( )

Definition at line 109 of file SCR_PlayerControllerCommandingComponent.c.

◆ RPC_CommandExecutedCallback()

void RPC_CommandExecutedCallback ( int  commandIndex)
Parameters
[in]commandIndex

Definition at line 375 of file SCR_PlayerControllerCommandingComponent.c.

◆ RPC_RequestExecuteCommand()

void RPC_RequestExecuteCommand ( int  commandIndex,
RplId  cursorTargetID,
RplId  groupRplID,
vector  targetPoisition,
int  playerID 
)
Parameters
[in]commandIndex
[in]cursorTargetID
[in]groupRplID
[in]targetPoisition
[in]playerID

Definition at line 354 of file SCR_PlayerControllerCommandingComponent.c.

◆ SetupMapListener()

void SetupMapListener ( )

Definition at line 98 of file SCR_PlayerControllerCommandingComponent.c.

◆ SetupMapRadialMenu()

void SetupMapRadialMenu ( )

Definition at line 161 of file SCR_PlayerControllerCommandingComponent.c.

◆ SetupPlayerRadialMenu()

void SetupPlayerRadialMenu ( IEntity  owner)
Parameters
[in]owner

Definition at line 121 of file SCR_PlayerControllerCommandingComponent.c.

◆ UpdateRadialMenu()

void UpdateRadialMenu ( IEntity  owner,
bool  isOpen 
)
Parameters
[in]owner
[in]isOpen

Definition at line 416 of file SCR_PlayerControllerCommandingComponent.c.

Variable Documentation

◆ m_bIsCommandExecuting

protected bool m_bIsCommandExecuting = false

Definition at line 28 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_bSlaveGroupRequested

protected bool m_bSlaveGroupRequested = false

Definition at line 29 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_CommandingManager

protected SCR_CommandingManagerComponent m_CommandingManager

Definition at line 23 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_CommandingMenuConfig

protected ref SCR_PlayerCommandingMenuConfig m_CommandingMenuConfig

Definition at line 19 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_MapContextualMenu

protected SCR_MapRadialUI m_MapContextualMenu

Definition at line 24 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_PhysicsHelper

protected ref SCR_PhysicsHelper m_PhysicsHelper

Definition at line 30 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_RadialMenu

protected SCR_RadialMenu m_RadialMenu

Definition at line 17 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_RadialMenuController

protected ref SCR_RadialMenuController m_RadialMenuController

Definition at line 15 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_sCommandingMapMenuConfigPath

Configs Commanding CommandingMapMenu conf protected ResourceName m_sCommandingMapMenuConfigPath

Definition at line 12 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_SelectedEntity

protected IEntity m_SelectedEntity

Definition at line 21 of file SCR_PlayerControllerCommandingComponent.c.

◆ m_sExecutedCommandName

protected string m_sExecutedCommandName

Definition at line 26 of file SCR_PlayerControllerCommandingComponent.c.