Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FactionCallsignData Class Reference

For each faction, holds available companies, which in turn hold available platoons, which in turn hold available squads. More...

Protected Member Functions

void SCR_FactionCallsignData (SCR_FactionCallsignInfo factionCallsignInfo)
bool GetRandomCallsign (out int company, out int platoon, out int squad)
bool GetFirstAvailibleCallsign (out int firstAvailableCompany, out int firstAvailablePlatoon, out int firstAvailableSquad)
bool GetSpecificCompanyCallsign (out int company, out int platoon, out int squad)
bool GetGroupRoleSpecificCompanyCallsign (notnull SCR_AIGroup group, out int company, out int platoon, out int squad)
void AddCallsign (int companyIndex, int platoonIndex, int squadIndex)
void RemoveCallsign (int companyIndex, int platoonIndex, int squadIndex)

Protected Attributes

ref map< int, ref SCR_CallsignCompanyDatam_mCompanyCallsigns = new map<int, ref SCR_CallsignCompanyData>()
ref map< int, ref SCR_CallsignCompanyDatam_mCompanyOverflowCallsigns = new map<int, ref SCR_CallsignCompanyData>()
int m_iOverflowIndex
bool m_bRandomizedCallsigns

Detailed Description

For each faction, holds available companies, which in turn hold available platoons, which in turn hold available squads.

Definition at line 2 of file SCR_FactionCallsignData.c.

Constructor & Destructor Documentation

◆ SCR_FactionCallsignData()

void SCR_FactionCallsignData::SCR_FactionCallsignData ( SCR_FactionCallsignInfo factionCallsignInfo)
inlineprotected
Parameters
[in]factionCallsignInfo

Definition at line 13 of file SCR_FactionCallsignData.c.

Member Function Documentation

◆ AddCallsign()

void SCR_FactionCallsignData::AddCallsign ( int companyIndex,
int platoonIndex,
int squadIndex )
inlineprotected

Adds callsign back to available callsign pool

Parameters
[in]companyIndexcompany index
[in]platoonIndexplatoon index
[in]squadIndexsquad index

Definition at line 224 of file SCR_FactionCallsignData.c.

◆ GetFirstAvailibleCallsign()

bool SCR_FactionCallsignData::GetFirstAvailibleCallsign ( out int firstAvailableCompany,
out int firstAvailablePlatoon,
out int firstAvailableSquad )
inlineprotected

Goes through all available companies, platoons and squads and gets the first available. Meaning if platoon 1 is taken it will get 2 next not 3. Will first go through default companies, if these are all taken then go though overflow companies

Parameters
[out]firstAvailableCompanycompany index
[out]firstAvailablePlatoonplatoon index
[out]firstAvailableSquadsquadindex
Returns
true if succesfully found a callsign

Definition at line 82 of file SCR_FactionCallsignData.c.

◆ GetGroupRoleSpecificCompanyCallsign()

bool SCR_FactionCallsignData::GetGroupRoleSpecificCompanyCallsign ( notnull SCR_AIGroup group,
out int company,
out int platoon,
out int squad )
inlineprotected

Gets a callsign based on the group role of group. Will use overflow companies for finding of callsign when no available callsigns for specific group role available.

Parameters
[in]group
[out]companycompany index
[out]platoonplatoon index
[out]squadsquad index
Returns
true if successfully found an available callsign based on group role

Definition at line 164 of file SCR_FactionCallsignData.c.

◆ GetRandomCallsign()

bool SCR_FactionCallsignData::GetRandomCallsign ( out int company,
out int platoon,
out int squad )
inlineprotected

Gets company, platoon and squad index randomly from available callsigns Will first go through default companies, if these are all taken then go though overflow companies

Parameters
[out]companyindex
[out]platoonindex
[out]squadindex
Returns
true if succesfully found a callsign

Definition at line 43 of file SCR_FactionCallsignData.c.

◆ GetSpecificCompanyCallsign()

bool SCR_FactionCallsignData::GetSpecificCompanyCallsign ( out int company,
out int platoon,
out int squad )
inlineprotected

Gets a callsign for a specific company given. Will however use either GetRandomCallsign or GetFirstAvailibleCallsign (depending on callsign settings) if specific company is not available

Parameters
[out]companycompany index
[out]platoonplatoon index
[out]squadsquad index
Returns
true if successfully found a callsign (either the first available or GetRandomCallsign/GetFirstAvailibleCallsign)

Definition at line 128 of file SCR_FactionCallsignData.c.

◆ RemoveCallsign()

void SCR_FactionCallsignData::RemoveCallsign ( int companyIndex,
int platoonIndex,
int squadIndex )
inlineprotected

Removes callsign from available callsign pool

Parameters
[in]companyindex
[in]platoonindex
[in]squadindex

Definition at line 261 of file SCR_FactionCallsignData.c.

Member Data Documentation

◆ m_bRandomizedCallsigns

bool SCR_FactionCallsignData::m_bRandomizedCallsigns
protected

Definition at line 8 of file SCR_FactionCallsignData.c.

◆ m_iOverflowIndex

int SCR_FactionCallsignData::m_iOverflowIndex
protected

Definition at line 7 of file SCR_FactionCallsignData.c.

◆ m_mCompanyCallsigns

ref map<int, ref SCR_CallsignCompanyData> SCR_FactionCallsignData::m_mCompanyCallsigns = new map<int, ref SCR_CallsignCompanyData>()
protected

Definition at line 4 of file SCR_FactionCallsignData.c.

◆ m_mCompanyOverflowCallsigns

ref map<int, ref SCR_CallsignCompanyData> SCR_FactionCallsignData::m_mCompanyOverflowCallsigns = new map<int, ref SCR_CallsignCompanyData>()
protected

Definition at line 5 of file SCR_FactionCallsignData.c.


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