예제 #1
0
        public void RemovePersonFromWorkingList(Person person)
        {
            person.OldWorkKind = person.WorkKind;
            switch (person.WorkKind)
            {
                case ArchitectureWorkKind.赈灾 :
                    this.zhenzaiWorkingPersons.Remove(person);
                    break;
                case ArchitectureWorkKind.农业:
                    this.AgricultureWorkingPersons.Remove(person);
                    break;

                case ArchitectureWorkKind.商业:
                    this.CommerceWorkingPersons.Remove(person);
                    break;

                case ArchitectureWorkKind.技术:
                    this.TechnologyWorkingPersons.Remove(person);
                    break;

                case ArchitectureWorkKind.统治:
                    this.DominationWorkingPersons.Remove(person);
                    break;

                case ArchitectureWorkKind.民心:
                    this.MoraleWorkingPersons.Remove(person);
                    break;

                case ArchitectureWorkKind.耐久:
                    this.EnduranceWorkingPersons.Remove(person);
                    break;

                case ArchitectureWorkKind.训练:
                    person.StopTraining();
                    break;

                case ArchitectureWorkKind.补充:
                    person.StopRecruitment();
                    break;
            }
            person.WorkKind = ArchitectureWorkKind.无;
        }