Squad
Browse its members and the signatures that accept or return this type.
Members
45Expand a member to read its notes or open its full entry. Each overload keeps its own identity.
| Member | Signature and description |
|---|---|
| int Squad::Player()Handler for this function, int Squad::Player(Squad): decodes the player from the Squad value. |
| Squad | int Squad::No()Squad No returns the twelve-bit packed squad index. |
| int Squad::Eval()CKS scripting bridge returning the cached combat evaluation sum of a squad from offset [field]. |
| int Squad::State()Returns the squad's numeric state code as an integer obtained from an unsigned 16-bit value. |
| void Squad::SetState(int)updates a squad's internal state code and records the transition timestamp. |
| Squad | int Squad::StateTime()Squad StateTime returns game [field] minus resolved squad record [field]. |
| int Squad::Size()CKS scripting bridge and internal accessor returning the active unit count of a squad from offset [field]. |
| GAIKA Squad::SrcGAIKA()The SrcGAIKA and DestGAIKA handlers return the squad record's 16-bit fields at [field] and [field], respectively. |
| GAIKA Squad::DestGAIKA()The SrcGAIKA and DestGAIKA handlers return the squad record's 16-bit fields at [field] and [field], respectively. |
| GAIKA Squad::GAIKAIn()Squad::GAIKAIn resolves the packed Squad value and returns the zero-extended 16-bit field at squad record [field]. |
| Unit Squad::Leader()CKS scripting bridge resolving a squad's leading unit handle from the head of its member collection. |
| Squad | ObjList Squad::Units()Copies the Squad record's [field] member container into a new ObjList. |
| void Squad::SetState(int, int, int)Updates state, masked flags and a game-clock snapshot for a resolved Squad. |
| Squad | void Squad::ClrCmd(int, int, int)Updates a squad command state and notifies member units. |
| void Squad::SetCmd(int, int, int, str)Updates squad state and flags and submits named zero-argument commands to member units. |
| void Squad::SetCmd(int, int, int, str, point)Resolves the squad reference and delegates a command operation with target point coordinates. |
| void Squad::SetCmd(int, int, int, str, Obj)Updates squad command state and submits an object-target command to eligible member units. |
| void Squad::Siege(Obj, int, int, int)Stores the final state argument before validating the target and delegates member siege planning. |
| void Squad::SendTo(GAIKA, int)Validates a packed Squad handle and delegates a destination command for an active squad. |
| Squad | GAIKA Squad::AIDest()Returns a squad's AI destination identifier with a stored-field fallback. |
| GAIKA Squad::OrderDest()Resolves a Squad record and returns the order destination selected by a record helper. |
| Squad | void Squad::DelOrder()Delegates a packed squad index to the player AI order-release helper. |
| Squad | int Squad::GetFlags()Description pendingDescription pending. |
| bool Squad::TestFlags(int)Tests whether a squad satisfies all bits in a specified bitmask against its internal flags at offset [field]. |
| Squad | void Squad::SetFlags(int, int)Description pendingDescription pending. |
| Squad | void Squad::Lock()Description pendingDescription pending. |
| Squad | void Squad::Unlock()Description pendingDescription pending. |
| int Squad::LastFightTime()Description pendingDescription pending. |
| Squad | bool Squad::InHolder()Scans squad members and rejects non-null entries with holder word FFFF. |
| Squad | point Squad::pos()Resolves a squad leader and returns its point or (-1,-1). |
| int Squad::health()Computes current health by summing the [field] dword of each non-null registry object in the resolved squad member traversal. |
| int Squad::maxhealth()Computes maximum health by summing the [field] dword of each non-null registry object in the resolved squad member traversal. |
| Squad | int Squad::food()Sums food dwords of resolved squad members. |
| int Squad::FoodComing()Sums food amounts of player wagons whose command target belongs to the requested squad. |
| bool Squad::SendFoodWagon(int, int)Selects an eligible nearby food wagon (scanning existing wagons and buildings that can spawn one) and constructs/enqueues a "follow" command targeting a hero; its own selection algorithm is substantially richer than a simple nearby-wagon scan. |
| int Squad::EvalAttach(Unit, int)Scores a candidate unit using squad size, affiliation equality and its virtual level result. |
| Squad | int Squad::Count(str)Counts squad members whose class template matches a named ancestry chain. |
| bool Squad::HasFreedom()Scans members for a particular object flag or a nonzero class-query result. |
| bool Squad::CalcGoAround()Chooses an intermediate GAIKA waypoint and reissues squad-member commands to route around an obstruction. |
| bool Squad::TakeNearbyItems(int)Selects an item holder near the squad leader and issues a getitems command. |
| bool Squad::UseTeleport(Obj, int, str, point)Stores squad state/time and submits teleport plus point commands for live members. |
| Squad | void Squad::InvadeThroughGate(Obj, int)Description pendingDescription pending. |
| Squad | void Squad::Dump()Delegates a nonzero packed squad value to a diagnostic formatter. |
| Squad | void Squad::AIRun(str)Forwards a packed squad value to a resolved registered script command. |
| Squad | Obj Squad::GetLastAttacker()Description pendingDescription pending. |
Return this type
4| Member | Signature and description |
|---|---|
GetSquadGlobal | Squad GetSquad(int, int)Handler for this function, Squad GetSquad(int, int): packs player and index into a 4-byte Squad value. |
Unit::GetSquadUnit | Squad Unit::GetSquad()Returns the zero-extended squad word linked from a resolved Unit. |
SquadList::CurSquadList | Squad SquadList::Cur()Resolves a SquadList cursor and returns the current packed Squad value from its chunked storage. |
selsqGlobal | Squad selsq()Selects a candidate with a particular flag and returns its squad selector extended with zero bits. |
Accept this type
4| Member | Signature and description |
|---|---|
SquadList::AddSquadList | void SquadList::Add(Squad)Creates a list entry when necessary and passes the supplied Squad low word to its append helper. |
NearestHospitalGlobal | GAIKA NearestHospital(Squad)Scores eligible friendly hospital strongholds for a squad and returns the best GAIKA index. |
Gate::InsideGate | bool Gate::Inside(Squad)Tests a native gate/member path predicate universally over squad members. |
Gate::OutsideGate | bool Gate::Outside(Squad)Tests the zero-result gate/member path predicate universally over squad members. |
Coverage and limits
38 / 45 members with a published description.
These lists come from published signatures. “Accept” counts explicit parameters, excluding the method receiver; reference variants (&) are included. No inheritance hierarchy is asserted. Undocumented names, units and effects remain unresolved.