AIHospital Class
Method Index
- _fixBoiler() (inherited from Hospital)
- _getAverageHumanoidsAttribute(humanoids, attribute, default_value, min_count) (inherited from Hospital)
- addHandymanTask(object, taskType, priority, x, y, call) (inherited from Hospital)
- addInsuranceMoney(company, amount) (inherited from Hospital)
- addPatient(patient) (inherited from Hospital)
- addRathole(x, y, wall, parcel) (inherited from Hospital)
- addStaff(staff) (inherited from Hospital)
- addTileObject(object_category) (inherited from Hospital)
- addToEpidemic(patient) (inherited from Hospital)
- adviseBoilerBreakdown() (inherited from Hospital)
- adviseCannotAffordPlot() (inherited from Hospital)
- adviseDiscoverDisease(disease) (inherited from Hospital)
- adviseNoGPOffice() (inherited from Hospital)
- advisePlants() (inherited from Hospital)
- advisePriceLevelImpact(judgment, name) (inherited from Hospital)
- afterLoad(old, new) (overrides Hospital:afterLoad)
- announceRepair(room) (inherited from Hospital)
- announceStaffLeave(staff) (inherited from Hospital)
- assignHandymanToTask(handyman, task_index, task_type) (inherited from Hospital)
- boilerBreakdown(broken_heat) (inherited from Hospital)
- buildReceptionDesksCache() (inherited from Hospital)
- canAcceptPatients() (inherited from Hospital)
- canConcentrateResearch(disease) (inherited from Hospital)
- cancelEpidemics(disease) (inherited from Hospital)
- changeReputation(reason, disease, valueChange) (inherited from Hospital)
- changeValue(changeValue) (inherited from Hospital)
- checkDiseaseRequirements(disease) (inherited from Hospital)
- checkEmergencyOver() (inherited from Hospital)
- computePriceLevelImpact(patient, casebook) (inherited from Hospital)
- countEpidemics() (inherited from Hospital)
- countFireExtinguishers() (inherited from Hospital)
- countGeneralObjects() (inherited from Hospital)
- countNewPatient() (inherited from Hospital)
- countPatients(max_count) (inherited from Hospital)
- countPlants() (inherited from Hospital)
- countRadiators() (inherited from Hospital)
- countReceptionDesks() (inherited from Hospital)
- countRoomOfType(type, max_count) (inherited from Hospital)
- countSittingStanding() (inherited from Hospital)
- countStaffOfCategory(category, max_count) (inherited from Hospital)
- createEmergency(emergency) (inherited from Hospital)
- createVip() (inherited from Hospital)
- daysUntilNextDisaster() (inherited from Hospital)
- determineIfContagious(patient) (inherited from Hospital)
- findAssignedTasksToHandyman(handyman) (inherited from Hospital)
- findHandymanTaskSubtable(taskType) (inherited from Hospital)
- findRatholeTiles(count, left, top, right, bottom) (inherited from Hospital)
- getAveragePatientAttribute(attribute, default_value, min_count) (inherited from Hospital)
- getAverageStaffAttribute(attribute, default_value) (inherited from Hospital)
- getCampaignData() (inherited from Hospital)
- getDebugPatient() (inherited from Hospital)
- getDiseaseReputation(disease) (inherited from Hospital)
- getDiseaseReputationPriceFactor(disease) (inherited from Hospital)
- getHandymanTaskPriority(taskIndex, taskType) (inherited from Hospital)
- getHeliportPosition() (inherited from Hospital)
- getHeliportSpawnPosition() (inherited from Hospital)
- getIndexOfTask(x, y, taskType, obj) (inherited from Hospital)
- getObjectBuildCost(name) (inherited from Hospital)
- getOwnedTileCount() (inherited from Hospital)
- getPlayerIndex() (inherited from Hospital)
- getRandomBusyRoom() (inherited from Hospital)
- getReceptionDesks(is_staffed) (inherited from Hospital)
- getReputationChangeLikelihood() (inherited from Hospital)
- getTreatmentPrice(disease) (inherited from Hospital)
- getWallsAround(x, y) (inherited from Hospital)
- giveAdvice(msgs, rnd_frac, stay_up) (inherited from Hospital)
- hadPatients() (inherited from Hospital)
- hasReceptionDesk(is_staffed) (inherited from Hospital)
- hasStaffedDesk()
- humanoidDeath(patient) (inherited from Hospital)
- initOwnedPlots() (inherited from Hospital)
- initStaff() (inherited from Hospital)
- isInHospital(x, y) (inherited from Hospital)
- isPlayerHospital() (inherited from Hospital)
- isReputationChangeAllowed(amount) (inherited from Hospital)
- isRoomDiscovered(room_id) (inherited from Hospital)
- logTransaction() (overrides Hospital:logTransaction)
- makeDebugRat(left, top, right, bottom) (inherited from Hospital)
- makeEmergencyEndFax(rescued_patients, total, max_bonus, earned) (inherited from Hospital)
- makeEmergencyStartFax() (inherited from Hospital)
- makeNoDiagnosisRoomFax(patient) (inherited from Hospital)
- makeNoTreatmentRoomFax(patient) (inherited from Hospital)
- makeRaiseRequest(amount, staff) (inherited from Hospital)
- makeVipEndFax(vip_rating, name, cash_reward, vip_message) (inherited from Hospital)
- manageEpidemics() (inherited from Hospital)
- modifyHandymanTaskPriority(taskIndex, newPriority, taskType) (inherited from Hospital)
- msgCured() (inherited from Hospital)
- msgKilled() (inherited from Hospital)
- msgMultiReceptionDesks() (inherited from Hospital)
- msgNeedFirstReceptionDesk() (inherited from Hospital)
- msgReceptionDesk() (inherited from Hospital)
- notifyOfStaffChange(staff) (inherited from Hospital)
- objectPlaced(entity, id) (inherited from Hospital)
- onEndDay() (inherited from Hospital)
- onEndMonth() (inherited from Hospital)
- onEndYear() (inherited from Hospital)
- onSpawnVIP() (inherited from Hospital)
- open() (inherited from Hospital)
- paySupplierForDrug(disease_id) (inherited from Hospital)
- playSound(sound) (inherited from Hospital)
- purchasePlot(plot_number) (inherited from Hospital)
- receiveMoney(amount, reason, changeValue) (inherited from Hospital)
- receiveMoneyForProduct(patient, amount, reason) (inherited from Hospital)
- receiveMoneyForTreatment(patient) (inherited from Hospital)
- removeDebugPatient(patient) (inherited from Hospital)
- removeHandymanTask(taskIndex, taskType) (inherited from Hospital)
- removeMessage(humanoid) (inherited from Hospital)
- removePatient(patient) (inherited from Hospital)
- removeRathole(hole) (inherited from Hospital)
- removeRatholeXY(x, y) (inherited from Hospital)
- removeRatholesAroundRoom(room) (inherited from Hospital)
- removeStaff(staff) (inherited from Hospital)
- removeTileObject(object_category) (inherited from Hospital)
- resetDeathCount() (inherited from Hospital)
- resolveEmergency() (inherited from Hospital)
- roomNotYetResearched(disease) (inherited from Hospital)
- searchForHandymanTask(handyman, task_type) (inherited from Hospital)
- sellSodaToPatient(patient) (inherited from Hospital)
- setCampaignData(campaign_data) (inherited from Hospital)
- showGatesToHell(entity) (inherited from Hospital)
- spawnContagiousPatient() (inherited from Hospital)
- spawnPatient() (overrides Hospital:spawnPatient)
- spawnRat(hole) (inherited from Hospital)
- spendMoney(amount, reason, changeValue) (inherited from Hospital)
- tick() (inherited from Hospital)
- tickEarthquake(stage) (inherited from Hospital)
- unassignHandymanTasks(handyman) (inherited from Hospital)
- unconditionalChangeReputation(valueChange) (inherited from Hospital)
- updateCuredCounts(patient) (inherited from Hospital)
- updateNotCuredCounts(patient, reason) (inherited from Hospital)
- updatePercentages() (inherited from Hospital)
Member Index
- acc_heating (*)
- acc_loan_interest (*)
- acc_overdraft (*)
- acc_research_cost (*)
- autopsy_discovered (*)
- balance (*)
- bench_msg (*)
- boiler_can_break (*)
- boiler_countdown (*)
- cash_msg (*)
- concurrent_epidemic_limit (*)
- curr_setting (*)
- current_inflation (*)
- debug_patients (*)
- disasterless_days (*)
- discover_autopsy_risk (*)
- discovered_diseases (*)
- discovered_rooms (*)
- disease_casebook (*)
- emergency (*)
- emergency_patients (*)
- epidemic (*)
- epidemics_disabled (*)
- free_build_mode (*)
- future_epidemics_pool (*)
- handymanTasks (*)
- handyman_popup (*)
- has_impressive_reputation (*)
- has_seen_pay_rise (*)
- heating (*)
- heating_broke (*)
- hosp_cheats
- hospital_littered (*)
- inflation_rate (*)
- initial_grace (*)
- insurance (*)
- insurance_balance (*)
- interest_rate (*)
- is_in_world
- loan (*)
- message_popup (*)
- money_in (*)
- money_out (*)
- msg_counter (*)
- name
- next_month_start (*)
- not_cured (*)
- not_cured_ty (*)
- num_cured (*)
- num_cured_ty (*)
- num_deaths (*)
- num_deaths_this_year (*)
- num_explosions (*)
- num_vips (*)
- num_vips_ty (*)
- num_visitors (*)
- num_visitors_pm (*)
- num_visitors_tm (*)
- num_visitors_ty (*)
- opened (*)
- over_priced_threshold (*)
- overdraft_interest_rate (*)
- ownedPlots (*)
- patientcount (*)
- patients (*)
- percentage_cured (*)
- percentage_killed (*)
- player_salary (*)
- pleased_vips_ty (*)
- policies (*)
- population (*)
- radiator_heat (*)
- ratholes (*)
- reception_desks (*)
- receptionist_count (*)
- receptionist_msg (*)
- reputation (*)
- reputation_above_threshold (*)
- reputation_max (*)
- reputation_min (*)
- research (*)
- research_dep_built (*)
- room_discoveries (*)
- sal_min (*)
- salary_incr (*)
- salary_offer (*)
- seating_warning (*)
- show_progress_screen_warnings (*)
- sodas_sold (*)
- spawn_attempts (*)
- spawn_rate_cheat (*)
- staff (*)
- staff_room_msg (*)
- staffed_reception_desks (*)
- statistics (*)
- thirst_msg (*)
- tile_object_counts (*)
- toilet_msg (*)
- transactions (*)
- under_priced_threshold (*)
- undiscovered_rooms (*)
- value (*)
- vip_declined (*)
- warmth_msg (*)
- world (*)
function AIHospital:AIHospital(competitor, world, avail_rooms, name)
Parameters:
| Name | Type | Description |
|---|---|---|
| competitor | ? | ? |
| world | ? | ? |
| avail_rooms | ? | ? |
| name | ? | ? |
Declared on: line 26 of Lua/hospitals/ai_hospital.lua.
function AIHospital:afterLoad(old, new)
Parameters:
| Name | Type | Description |
|---|---|---|
| old | ? | ? |
| new | ? | ? |
Overrides: Hospital:afterLoad.
Declared on: line 50 of Lua/hospitals/ai_hospital.lua.
function AIHospital:logTransaction()
Overrides: Hospital:logTransaction.
Declared on: line 42 of Lua/hospitals/ai_hospital.lua.
function AIHospital:spawnPatient()
Overrides: Hospital:spawnPatient.
Declared on: line 38 of Lua/hospitals/ai_hospital.lua.