コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 public SelfStateResponse getSelfState() {
   return httpGameClient.getSelfState(participantId);
 }
コード例 #6
0
 public RoundStateResponse getRoundState() {
   return httpGameClient.getRoundState();
 }
コード例 #7
0
 public ClockCheck checkClock(ClockCheck clockCheck) {
   return httpGameClient.checkClock(clockCheck);
 }