Esempio n. 1
0
 protected BuildRequest(IOnlyProductionObject productionObject /*Player requestingPlayer*/)
 {
     //     this.requestingPlayer = requestingPlayer;
        // requestingPlayer.
     ProductionObject = productionObject;
     ProductionProgress = 0;
 }
 public BuildingBuildRequest(
     IOnlyProductionObject productionObject,
     BuildingSpot containingBuildingSpot
     )
     : base(productionObject)
 {
     this.containingBuildingSpot = containingBuildingSpot;
 }
 public TileItemBuildRequest(IOnlyProductionObject productionObject,Tile containingTile)
     : base(productionObject)
 {
     ContainingTile = containingTile;
 }
Esempio n. 4
0
 public void AddBuildingToBuildQuery(
     IOnlyProductionObject buildProductionObject,
     BuildingSpot containingBuildingSpot
     )
 {
     if (!PlayerBuildingSpots.Contains(containingBuildingSpot)) return;
     PlayerBuildQuery.Add(
         new BuildingBuildRequest(
             buildProductionObject,
             containingBuildingSpot
             )
         );
 }
Esempio n. 5
0
 public void AddTileItemToBuildingQuery(IOnlyProductionObject tileItem, Tile containingTile)
 {
     if (containingTile.ControlPlayer != this) return;
     PlayerBuildQuery.Add(
         new TileItemBuildRequest(
             tileItem,
             containingTile
             )
         );
 }