public PlaceBlockerResponse placeBlocker(Direction direction, ShopResponse shop) { PlaceBlockerParameters blockerParameters = new PlaceBlockerParameters(); blockerParameters.setDirection(direction); blockerParameters.setShopId(shop.getShopId()); blockerParameters.setShopOwnerId(participantId); return httpGameClient.placeBlocker(blockerParameters); }
public BuyResponse buyStock(int quantity, ShopResponse shop, Stock.StockType stockType) { BuyStockParameters buyStockParam = new BuyStockParameters(); buyStockParam.setShopOwnerId(participantId); buyStockParam.setQuantity(quantity); buyStockParam.setShopId(shop.getShopId()); buyStockParam.setStockType(stockType); return httpGameClient.buyStock(buyStockParam); }
public RequestShopResponse requestShop(double bidAmount, int col, int row) { BuyShopParameters shopParameters = new BuyShopParameters(); shopParameters.setBidAmount(bidAmount); shopParameters.setColumn(col); shopParameters.setRow(row); shopParameters.setShopOwnerId(participantId); return httpGameClient.requestShop(shopParameters); }
public PlaceAdvertResponse placeAdvert( Direction direction, ShopResponse shop, Stock.StockType stockType) { PlaceAdvertParameters advertParameters = new PlaceAdvertParameters(); advertParameters.setShopOwnerId(participantId); advertParameters.setStockType(stockType); advertParameters.setShopId(shop.getShopId()); advertParameters.setDirection(direction); return httpGameClient.placeAdvert(advertParameters); }
public SelfStateResponse getSelfState() { return httpGameClient.getSelfState(participantId); }
public RoundStateResponse getRoundState() { return httpGameClient.getRoundState(); }
public ClockCheck checkClock(ClockCheck clockCheck) { return httpGameClient.checkClock(clockCheck); }