Пример #1
0
        public Hanoi(int height)
        {
            this.height = height;

            widthMax = height * 2 - 1;

            startPositions = new int[] { 0, widthMax + 1, (widthMax + 1) * 2 };

            w = new Welt(3 * widthMax + 4, widthMax + 2, height + 1);
            w.setDelay(-1000);

            bob = new Builder(w);

            towers = new List <int>[] { new List <int>(), new List <int>(), new List <int>() };

            for (int i = 0; i < height; i++)
            {
                towers[0].Add((height - i) * 2 - 1);
            }
        }
Пример #2
0
 public void raiseTick(Welt.clsWelt sender, Welt.clsWelt.TickEventArgs e)
 {
     this.verbraucheLebensmittel();
         this.veränderePopulation();
 }
Пример #3
0
 public void raiseTick(Welt.clsWelt sender, Welt.clsWelt.TickEventArgs e)
 {
     this.verbraucheGüter();
         this.erzeugeGüter();
         this.veränderePopulation();
 }
Пример #4
0
 public frmEditor(Welt.clsWelt objWelt)
 {
     InitializeComponent();
     m_objWelt = objWelt;
 }
Пример #5
0
 public Builder(Welt w)
 {
     robo = new Roboter(w);
 }
Пример #6
0
 public void onTick(Welt.clsWelt sender, Welt.clsWelt.TickEventArgs e)
 {
     this.verbraucheLebensmittel();
         this.veränderePopulation();
         this.objSiedlungsTyp.erzeugeGüter(m_intEinwohner);
 }