Ejemplo n.º 1
0
 public AbstractBuilding Build(string type, Game.Point coords)
 {
     AbstractBuilding building = null;
     switch (type)
     {
         case ("Farm"):
             {
                 building = new Farm(coords);
                 break;
             }
         case ("Barrack"):
             {
                 building = new Barrack(coords);
                 break;
             }
         case ("BowWorkshop"):
             {
                 building = new BowWorkshop(coords);
                 break;
             }
         case ("Tower"):
             {
                 building = new Tower(coords);
                 break;
             }
         default:
             break;
     }
     return building;
 }
Ejemplo n.º 2
0
 public BowWorkshopLevel1(BowWorkshop building)
 {
     Building = building;
     Id       = building.Id;
 }