Party.java :  » Game » university-game » network » server » Java Open Source

Java Open Source » Game » university game 
university game » network » server » Party.java
/**
 * Party.java
 *
 * Partie de Tablut.  (cote server)
 *
 * @author Si-Mohamed Lamraoui
 * @date 21.05.10
 */

package network.server;



public class Party
{

  public static String SUEDOIS_SIDE   = "s";
  public static String MOSCOVITE_SIDE = "m";
  
  public Client   client1;   // joueur 1
  public Client   client2;   // joueur 2
  public boolean   skill;     // true : attaques activees, false : attaques inactivees
  public int     id;     // identifiant de la partie
  public String   type;     // s : suedois, m : moscovites
  public boolean   started;   // la partie a t'elle demarree
  // idee : partie privee (avec mot de passe)

  public Party(int i, Client c, String t, boolean s)
  {
    id = i;
    client1 = c;
    type = t;
    skill = s;
    started = false;
    // TODO recup info dans BD
  }



}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.