Пример #1
0
        private OffensivePlay ChoosePlay()
        {
            PlayBook           book    = PlayBook.GetInstance();
            OffensiveFormation offense = book.iFormTwoWR;

            return(offense.GetPlay("Deep Pass"));

            /*switch(Random.GetInstance().Next(8))
             * {
             *  case 0:
             *      return offense.GetPlay("Dive Right");
             *  case 1:
             *      return offense.GetPlay("Slam Right");
             *  case 2:
             *      return offense.GetPlay("Stretch Right");
             *  case 3:
             *      return offense.GetPlay("Pitch Right");
             *  case 4:
             *      return offense.GetPlay("Dive Left");
             *  case 5:
             *      return offense.GetPlay("Slam Left");
             *  case 6:
             *      return offense.GetPlay("Stretch Left");
             *  case 7:
             *      return offense.GetPlay("Pitch Left");
             * }
             * return null;*/
            // TODO: Implement coach playcalling logic
        }
Пример #2
0
        private DefensivePlay ChooseDefensivePlay(Formation formation)
        {
            DefensiveFormation defense = PlayBook.GetInstance().fourThree;

            return(defense.GetPlay("Man Two Under"));
            // TODO: Implement coach playcalling logic
        }
Пример #3
0
 public static PlayBook GetInstance()
 {
     if (instance == null)
     {
         instance = new PlayBook();
     }
     return(instance);
 }