1
edit
Changes
C3dl RTS
,→Classes
//homes only
numOfOccupants; //the number of people in the building
maxNumOfOccupants; //the maximum amount of people allowed in the building
numOfBanks; //the number of nearby banks, this will affect the amount of money each building will make
isInhabitable; //can the building house people, burned buildings cannot have people
//all buildings
isBurning; //is the building burning
health; //the current health of the building
maxHealth; //the maximum health of the building
level; //the building's level, this will affect maxNumOfOccupants, maxHealth, and rapairRate
//firestation and lumber mill
[] adjacentBuilding; //a list of nearby buildings that needed to determine which buildings can be extinguish and repaired
repairRate; //the rate at which the building is repaired or extinguished after fire damage
initialDamage; //how much health is deducted on attack
frequencyOfAttack; //