Esempio n. 1
0
 public virtual void createMap(int players)
 {
     if (players == 4)
     {
         Map = new Map();
         Map.setMapStrategy(new LargeMapStrategy());
         Map.createMap(this.Players);
     }
     else if (players == 3)
     {
         Map = new Map();
         Map.setMapStrategy(new LargeMapStrategy());
         Map.createMap(this.Players);
     }
     else
     {
         Map = new Map();
         Map.setMapStrategy(new SmallMapStrategy());
         Map.createMap(this.Players);
     }
 }