#include <cp_employee.h>
Data Fields | |
int | idx |
base_t * | baseHired |
char | speed |
building_t * | building |
qboolean | transfer |
character_t | chr |
employeeType_t | type |
struct nation_s * | nation |
struct ugv_s * | ugv |
The definition of an employee
Definition at line 59 of file cp_employee.h.
Base where the soldier is hired it atm.
Definition at line 63 of file cp_employee.h.
Referenced by E_CreateEmployeeAtIndex(), E_DeleteAllEmployees(), E_DeleteEmployee(), E_HireEmployee(), E_IsAwayFromBase(), E_IsInBase(), E_LoadXML(), E_MoveIntoNewBase(), E_RemoveEmployeeFromBuildingOrAircraft(), E_RemoveInventoryFromStorage(), E_SaveXML(), E_UnhireEmployee(), HOS_HospitalRun(), TR_EmptyTransferCargo(), and TR_TransferStart().
Assigned to this building in ccs.buildings[baseIDXHired][buildingID]
Definition at line 67 of file cp_employee.h.
Referenced by E_CountUnassigned(), E_CreateEmployeeAtIndex(), E_EmployeeIsUnassigned(), E_LoadXML(), E_RemoveEmployeeFromBuildingOrAircraft(), E_SaveXML(), RS_AssignScientist(), and RS_RemoveScientist().
Soldier stats (scis/workers/etc... as well ... e.g. if the base is attacked)
Definition at line 72 of file cp_employee.h.
Referenced by AIR_GetStorageRoom(), AIR_MoveAircraftIntoNewHomebase(), AIR_MoveEmployeeInventoryIntoStorage(), AIR_RemoveEmployee(), AIR_SaveAircraftXML(), B_PackInitialEquipment(), CL_ActorPilotSelect_f(), CL_ActorTeamSelect_f(), CL_CleanTempInventory(), CL_CleanupAircraftCrew(), CL_StatsUpdate_f(), CL_UpdateActorAircraftVar(), CL_UpdateCharacterStats(), CL_UpdateEmployeeList(), CP_GetWinProbabilty(), CP_MissionEnd(), CP_NationHandleBudget(), E_ChangeName_f(), E_CreateEmployeeAtIndex(), E_EmployeeList_f(), E_EmployeeSelect(), E_GetEmployeeFromChrUCN(), E_LoadXML(), E_RemoveInventoryFromStorage(), E_ResetEmployee(), E_SaveXML(), GAME_CP_Spawn(), HOS_EmployeeInit_f(), HOS_HealEmployee(), HOS_HospitalRun(), HOS_ListClick_f(), HOS_UpdateMenu(), TR_CargoList(), TR_CheckEmployee(), TR_SaveXML(), and TR_TransferSelect().
int employee_s::idx |
self link in global employee-list - this should be references only with the variable name emplIdx to let us find references all over the code easier
Definition at line 60 of file cp_employee.h.
Referenced by AIM_AddEmployeeFromMenu(), AIR_AddToAircraftTeam(), AIR_RemoveFromAircraftTeam(), E_CreateEmployeeAtIndex(), E_DeleteEmployee(), E_GetEmployee(), E_GetUnhiredEmployee(), E_LoadXML(), E_SaveXML(), HOS_UpdateMenu(), RS_AssignScientist(), TR_CargoList(), TR_GetTransferEmployee(), TR_LoadXML(), TR_TransferListSelect_f(), and TR_TransferSelect().
struct nation_s* employee_s::nation |
What nation this employee came from. This is NULL if the nation is unknown for some (code-related) reason.
Definition at line 74 of file cp_employee.h.
Referenced by E_CreateEmployeeAtIndex(), E_LoadXML(), and E_SaveXML().
char employee_s::speed |
Speed of this Worker/Scientist at research/construction.
Definition at line 65 of file cp_employee.h.
Referenced by E_CreateEmployeeAtIndex().
Is this employee currently transferred?
Definition at line 69 of file cp_employee.h.
Referenced by AIR_IsEmployeeInAircraft(), CL_UpdateEmployeeList(), E_DeleteEmployee(), E_GetHiredEmployees(), E_IsAwayFromBase(), E_UnhireEmployee(), TR_EmptyTransferCargo(), TR_LoadXML(), and TR_TransferStart().
back link to employee type in ccs.employees
Definition at line 73 of file cp_employee.h.
Referenced by AIR_DestroyAircraft(), AIR_IsEmployeeInAircraft(), AIR_RemoveFromAircraftTeam(), CL_StatsUpdate_f(), CL_UpdateActorAircraftVar(), CP_NationHandleBudget(), E_CreateEmployeeAtIndex(), E_DeleteEmployee(), E_EmployeeDelete_f(), E_HireEmployee(), E_IsAwayFromBase(), E_LoadXML(), E_RemoveEmployeeFromBuildingOrAircraft(), E_UnhireEmployee(), HOS_UpdateMenu(), RS_AssignScientist(), TR_CheckEmployee(), TR_GetTransferEmployee(), and TR_LoadXML().
struct ugv_s* employee_s::ugv |
if this is an employee of type EMPL_ROBOT then this is a pointer to the matching ugv_t struct. For normal employees this is NULL.
Definition at line 75 of file cp_employee.h.
Referenced by CL_CleanupAircraftCrew(), E_CountHiredRobotByType(), E_CountUnhiredRobotsByType(), E_CreateEmployeeAtIndex(), E_GetHiredRobot(), E_GetUnhiredRobot(), E_LoadXML(), and E_SaveXML().