For each faction, holds available companies, which in turn hold available platoons, which in turn hold available squads.
More...
|
| 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) |
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.
◆ SCR_FactionCallsignData()
◆ AddCallsign()
| void SCR_FactionCallsignData::AddCallsign |
( |
int | companyIndex, |
|
|
int | platoonIndex, |
|
|
int | squadIndex ) |
|
inlineprotected |
Adds callsign back to available callsign pool
- Parameters
-
| [in] | companyIndex | company index |
| [in] | platoonIndex | platoon index |
| [in] | squadIndex | squad 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] | firstAvailableCompany | company index |
| [out] | firstAvailablePlatoon | platoon index |
| [out] | firstAvailableSquadsquad | index |
- 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] | company | company index |
| [out] | platoon | platoon index |
| [out] | squad | squad 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] | company | index |
| [out] | platoon | index |
| [out] | squad | index |
- 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] | company | company index |
| [out] | platoon | platoon index |
| [out] | squad | squad 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] | company | index |
| [in] | platoon | index |
| [in] | squad | index |
Definition at line 261 of file SCR_FactionCallsignData.c.
◆ m_bRandomizedCallsigns
| bool SCR_FactionCallsignData::m_bRandomizedCallsigns |
|
protected |
◆ m_iOverflowIndex
| int SCR_FactionCallsignData::m_iOverflowIndex |
|
protected |
◆ m_mCompanyCallsigns
◆ m_mCompanyOverflowCallsigns
The documentation for this class was generated from the following file: