Class GameServiceHtml

java.lang.Object
edu.wisc.game.rest.GameService
edu.wisc.game.rest.GameServiceHtml

@Path("/GameServiceHtml")
public class GameServiceHtml
extends GameService
The HTML wrapper for the First Batch calls, to allow for the "HTML Play".
  • Constructor Details

  • Method Details

    • newEpisodeHtml

      @POST @Path("/newEpisodeHtml") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String newEpisodeHtml​(@FormParam("rules") String rules, @DefaultValue("0") @FormParam("pieces") int pieces, @DefaultValue("0") @FormParam("shapes") int shapes, @DefaultValue("0") @FormParam("colors") int colors, @DefaultValue("null") @FormParam("board") String boardName)
    • moveHtml

      @POST @Path("/moveHtml") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String moveHtml​(@FormParam("episode") String episodeId, @FormParam("x") int x, @FormParam("y") int y, @FormParam("bx") int bx, @FormParam("by") int by, @FormParam("cnt") int cnt)