Beispiel #1
0
 public Palace(BuildingSpot buildingSpot)
     : base(buildingSpot, 3, 3)
 {
     BuildingParams = new TileParams(production: 1, money: 1);
     Level = 1;
     Name = "Palace";
 }
Beispiel #2
0
 public void ChangeBuildingParams(int food = 0, int production = 0, int money = 0)
 {
     BuildingParams += new TileParams(food, production, money);
 }
Beispiel #3
0
 public void ChangeBuildingParams(TileParams newBuildingParams)
 {
     BuildingParams += newBuildingParams;
 }
Beispiel #4
0
 public bool Equals(TileParams other)
 {
     return Food == other.Food
            && Production == other.Production
            && Money == other.Money;
 }
Beispiel #5
0
 protected TileItem(string name, int food, int production, int money)
 {
     Name = name;
     TileParams = new TileParams(food, production, money);
 }
Beispiel #6
0
 protected TileItem(string name, TileParams tileParams)
 {
     Name = name;
     TileParams = tileParams;
 }