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
BuildingClass
CanBeRepaired
GetSecretProduction
Infiltrated
Update_Repair
BuildingTypeClass
GetCost
GetPrice
CellClass
GetColourComponents
HouseClass
GetCountryCostMult
GetTypeCostMult
GotPoweredCenter
LostPoweredCenter
PickIonCannonTarget
InfantryClass
SelectWeapon
Update
ObjectClass
ReceiveDamage
ScenarioClass
GenerateSecretLabBonuses
TechnoClass
Ammo
CanBeRepaired
ReceiveDamage
Reload
SelectNavalTargeting
SelectWeapon
Update
Update_Reloading
TechnoTypeClass
GetCost
GetPrice
GetRefund
GetRepairStepCost
UnitClass
GetUIName
Reload
SelectWeapon