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; }
public void AddBuildingToBuildQuery( IOnlyProductionObject buildProductionObject, BuildingSpot containingBuildingSpot ) { if (!PlayerBuildingSpots.Contains(containingBuildingSpot)) return; PlayerBuildQuery.Add( new BuildingBuildRequest( buildProductionObject, containingBuildingSpot ) ); }
public void AddTileItemToBuildingQuery(IOnlyProductionObject tileItem, Tile containingTile) { if (containingTile.ControlPlayer != this) return; PlayerBuildQuery.Add( new TileItemBuildRequest( tileItem, containingTile ) ); }