public LiftStatusText(Program myProgram, LiftSystem lift, HangarManager hangarMgr, MechanicManager mechMgr)
 {
     this.screen    = new List <string>();
     this.myProgram = myProgram;
     this.lift      = lift;
     this.hangarMgr = hangarMgr;
     this.mechMgr   = mechMgr;
 }
Esempio n. 2
0
        public Lift(Program myProgram)
        {
            this.myProgram = myProgram;

            this.mechMgr = new MechanicManager();
            this.mechMgr.add(new Climber(myProgram, this.totalSubFloors));

            this.hangarMgr = new HangarManager();
            this.hangarMgr.add(new HangarMechanic(this, 2, "1"));

            this.liftSys = new LiftSystem(myProgram, this.hangarMgr, this.mechMgr);
            this.txt     = new LiftStatusText(myProgram, this.liftSys, this.hangarMgr, this.mechMgr);

            this.setupList = new Stack <ISetupMechanic>();
            this.setupList.Push(new SetupClimber(myProgram, this.mechMgr));
            this.setupList.Push(new SetupHangarLiftSlot(myProgram, mechMgr, this.hangarMgr));
        }