"매 base-building / sim 게임에서 unit 의 HP 를 회복시키고 dead state → revive state 로 복귀시키는 핵심 facility". 매 Theme Hospital (1997) 의 sim genre 부터 Clash of Clans 의 PvP, XCOM 의 wound recovery 까지 매 wide spectrum 의 game design pattern. 매 design knob: heal rate, capacity, queue policy, cost.
매 핵심
매 game-design dimensions
Heal scope: HP 회복만 / wound recovery (XCOM long heal) / death revive (CoC).
Capacity: 동시 수용 unit 수. 매 upgrade level 에 비례.
Heal rate: HP/sec or HP/min. 매 unit max HP 에 보통 비례.
publicenumPatientState{Reception,Diagnosis,Treatment,Cured,Discharge,Death}publicclassPatient{publicPatientStatestate;publicDiseaseTypedisease;publicfloatdiagnosisAccuracy;publicfloatpatience;// 매 떨어지면 leave/die}voidStepPatient(Patientp,floatdt){p.patience-=dt;if(p.patience<=0){p.state=PatientState.Death;return;}switch(p.state){casePatientState.Reception:p.state=PatientState.Diagnosis;break;casePatientState.Diagnosis:if(TryDiagnose(p))p.state=PatientState.Treatment;break;casePatientState.Treatment:if(TryTreat(p))p.state=PatientState.Cured;break;}}