Reconstructed Westwood code samples

This folder serves as a repository for small snippets of Westwood code that I have reconstructed into higher-level code. Checking the Quick Reference first might help.

Complete classes

Various functions

AITriggerTypeClass
CreateFromINIList
AircraftClass
Mission_Attack
BuildingClass
CanBeRepaired
GetSecretProduction
Infiltrated
Update_Repair
BuildingTypeClass
GetCost
GetPrice
CellClass
GetColourComponents
HouseClass
CanBuildHowMany
FindEligibleAITeams
FindOwnedBuildingType
GenerateAIBuildPlan
GetCountryCostMult
GetTypeCostMult
GotPoweredCenter
LostPoweredCenter
PickIonCannonTarget
InfantryClass
SelectWeapon
Update
ObjectClass
ReceiveDamage
ScenarioClass
GenerateSecretLabBonuses
GenerateStartingUnits_A
GenerateStartingUnits_B
GenerateUniqueSeed
TacticalClass
ClearDirtyAreas
TechnoClass
Ammo
CanBeRepaired
ReceiveDamage
RegisterDestruction
Reload
SelectNavalTargeting
SelectWeapon
Update
Update_Reloading
Veterancy_Add
func_4E0
TechnoTypeClass
GetCost
GetPrice
GetRefund
GetRepairStepCost
UnitClass
GetUIName
Reload
SelectWeapon