employee_s Struct Reference

#include <cp_employee.h>

Collaboration diagram for employee_s:
Collaboration graph
[legend]

Data Fields

int idx
base_tbaseHired
char speed
building_tbuilding
qboolean transfer
character_t chr
employeeType_t type
struct nation_snation
struct ugv_sugv

Detailed Description

The definition of an employee

Definition at line 59 of file cp_employee.h.


Field Documentation

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().

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

See also:
E_DeleteEmployee

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().

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().

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?

See also:
Set in TR_TransferStart_f
Todo:
make use of this wherever needed.

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().

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().


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

Generated by  doxygen 1.6.2