Пример #1
0
        protected void SetCharacters(int theMap)
        {
            switch (theMap)
            {
            case 1:
                minotaur = SetMinotaur(1, 0);
                theseus  = SetTheseus(1, 2);
                break;

            case 2:
                theseus  = SetTheseus(2, 1);
                minotaur = SetMinotaur(0, 1);
                break;

            case 3:
                theseus  = SetTheseus(1, 1);
                minotaur = SetMinotaur(1, 0);
                break;

            case 4:
                theseus  = SetTheseus(1, 1);
                minotaur = SetMinotaur(4, 2);
                break;

            case 5:
                theseus  = SetTheseus(2, 1);
                minotaur = SetMinotaur(2, 4);
                break;

            case 6:
                theseus  = SetTheseus(0, 1);
                minotaur = SetMinotaur(4, 3);
                break;

            case 7:
                theseus  = SetTheseus(4, 5);
                minotaur = SetMinotaur(0, 5);
                break;

            case 9:
                theseus  = SetTheseus(1, 1);
                minotaur = SetMinotaur(3, 2);
                break;

            default:
                break;
            }
        }
Пример #2
0
        public void SetTestCharacters(int testMap)
        {
            switch (testMap)
            {
            case 1:
                theseus  = SetTheseus(1, 1);
                minotaur = SetMinotaur(3, 1);
                break;

            case 2:
                theseus  = SetTheseus(3, 0);
                minotaur = SetMinotaur(0, 0);
                break;

            case 3:
                theseus  = SetTheseus(3, 0);
                minotaur = SetMinotaur(0, 0);
                break;

            default:
                break;
            }
        }
Пример #3
0
 protected Minotaur SetMinotaur(int newX, int newY)
 {
     minotaur = new Minotaur(newX, newY);
     return(minotaur);
 }
Пример #4
0
 public void SetMinotaur(Minotaur newMinotaur)
 {
     minotaur = newMinotaur;
     minotaur.SetGame(this);
 }