Examples of GameInfo


Examples of beans.GameInfo

     
    Statement stmt = con.createStatement();
   
    ResultSet rs = stmt.executeQuery("select nom,description,controls,numberofplay,numberofrates,rates,num_jeux from JEUX");
    while(rs.next()){
      GameInfo gi = new GameInfo();
      gi.setNom(rs.getString(1));
      gi.setDescription(rs.getString(2));
      gi.setControls(rs.getString(3));
      gi.setNbOfPlays(rs.getInt(4));
      gi.setNbOfRates(rs.getInt(5));
      gi.setRate(rs.getInt(6));
      gi.setNum(rs.getInt(7));
      listOfGame.add(gi);
    }
   
    ListOfGames.setListOfGames(listOfGame);
    }catch(Exception e){
View Full Code Here

Examples of beans.GameInfo

   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  JDBCGameDAO game = new JDBCGameDAO();
  if(request.getParameter("game")!=null){
    game.increaseNbOfPlays(request.getParameter("game"));
    GameInfo gameInfo =game.getGameInfo(request.getParameter("game"));
    request.setAttribute("game", gameInfo);
    request.getRequestDispatcher("game.jsp").forward(request, response);
    /*out.println("<embed src='http://localhost:8080/in56/"+gameInfo.getNom()+".swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='480' width='720'/>");
    out.println("<br>Description<br>"+gameInfo.getDescription());
    out.println("<br>Controles<br>"+gameInfo.getControls());
View Full Code Here

Examples of beans.GameInfo

  return games;
  }
  @Override
  public GameInfo getGameInfo(String nom) {
    Connection con=null;
    GameInfo gi = new GameInfo();
    try{
      con= getDataSource().getConnection();
     
    PreparedStatement pstmt = con.prepareStatement("select description,controls,numberofplay,numberofrates,rates,num_jeux,lien from JEUX where nom=?");
    pstmt.setString(1, nom);
    ResultSet rs = pstmt.executeQuery();
    if(rs.next()){
      gi.setNom(nom);
      gi.setDescription(rs.getString(1));
      gi.setControls(rs.getString(2));
      gi.setNbOfPlays(rs.getInt(3));
      gi.setNbOfRates(rs.getInt(4));
      gi.setRate(rs.getInt(5));
      gi.setNum(rs.getInt(6));
      gi.setLien(rs.getString(7));
    }
    }catch(Exception e){
      System.out.println("probleme de connection");
      e.printStackTrace();
    }finally{
View Full Code Here

Examples of beans.GameInfo

   
  }
  @Override
  public GameInfo getGameOfTheMonth() {
    Connection con=null;
    GameInfo gi = new GameInfo();
    try{
      con= getDataSource().getConnection();
      Statement stmt=con.createStatement();
    ResultSet rs = stmt.executeQuery("select description,controls,numberofplay,numberofrates,rates,nom from JEUX where jeux_du_mois=1");
    if(rs.next()){
     
      gi.setDescription(rs.getString(1));
      gi.setControls(rs.getString(2));
      gi.setNbOfPlays(rs.getInt(3));
      gi.setNbOfRates(rs.getInt(4));
      gi.setRate(rs.getInt(5));
      gi.setNom(rs.getString(6));
    }
    }catch(Exception e){
      System.out.println("probleme de connection");
      e.printStackTrace();
    }finally{
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.game.GameInfo

  private LocalPlayer localPlayer;
  private LoginInfo loginInfo;
 
  private PlayerServiceAsync playerSvc=GWT.create(PlayerService.class);
  public ASBOTXGame(){
    super(new GameInfo(720,540,ASBOTXAssetsBundleWithLookup.INSTANCE));
  }
View Full Code Here

Examples of mage.game.GameInfo

                duelingTime = " (" + DateFormat.getDuration((new Date().getTime() - game.getStartTime().getTime())/1000) + ")";
            }
            state = "Dueling" + duelingTime;
            result = "";
        }
        return new GameInfo(0, this.getId(), game.getId(), state, result, playersInfo.toString(), tableId);
    }
View Full Code Here

Examples of org.kaminoite.ranka.kido.ipad.tools.go.specification.structure.GameInfo

    /** Create a game tree with the current board position as setup stones. */
    public static GameTree makeTreeFromPosition(ConstGameInfo info,
                                                ConstBoard board)
    {
        if (info == null)
            info = new GameInfo();
        GameTree tree = new GameTree(board.getSize(), info.getKomi(), null,
                                     info.get(StringInfo.RULES),
                                     info.getTimeSettings());
        Node root = tree.getRoot();
        for (GoPoint p : board)
View Full Code Here

Examples of org.kaminoite.ranka.kido.ipad.tools.go.specification.structure.GameInfo

  private final Map<String, ArrayList<String>> m_props = new TreeMap<String, ArrayList<String>> ();

  /** Apply some fixes for broken SGF files. */
  private void applyFixes () {
    Node root = m_tree.getRoot ();
    GameInfo info = m_tree.getGameInfo (root);
    if (root.hasSetup () && root.getPlayer () == null)
    {
      if (info.getHandicap () > 0)
      {
        root.setPlayer (WHITE);
      }
      else
      {
View Full Code Here

Examples of org.kaminoite.ranka.kido.ipad.tools.go.specification.structure.GameInfo

    }
    return m_buffer.toString ();
  }

  private void set (Node node, StringInfo type, String value) {
    GameInfo info = createGameInfo (node);
    info.set (type, value);
  }
View Full Code Here

Examples of org.kaminoite.ranka.kido.ipad.tools.go.specification.structure.GameInfo

    GameInfo info = createGameInfo (node);
    info.set (type, value);
  }

  private void set (Node node, StringInfoColor type, GoColor c, String value) {
    GameInfo info = createGameInfo (node);
    info.set (type, c, value);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.