Class Game

java.lang.Object
   |
   +----Game

public class Game
extends Object
implements Runnable
See Also:
ServM

Variable Index

 o g
 o gaming
 o nick1
 o nick2
 o player1
 o player2
 o rules
 o turn1
 o waitcount
 o waiting

Constructor Index

 o Game(String, String, String)
Construct a new game and launch the Thread

Method Index

 o die()
die
 o log(String)
 o newGame()
create a newGame
 o parseS(String, Player, Player)
Parse the incoming String an do what's needed
 o run()
Reads the stream, parses the Input

Variables

 o g
 private Thread g
 o player1
 private Player player1
 o player2
 private Player player2
 o nick1
 private String nick1
 o nick2
 private String nick2
 o gaming
 private boolean gaming
 o waiting
 private boolean waiting
 o waitcount
 private int waitcount
 o turn1
 private boolean turn1
 o rules
 private Rules rules

Constructors

 o Game
 public Game(String n1,
             String n2,
             String r)
Construct a new game and launch the Thread

Methods

 o newGame
 private void newGame()
create a newGame

 o run
 public void run()
Reads the stream, parses the Input

 o die
 void die()
die

 o parseS
 void parseS(String text,
             Player player,
             Player opponent)
Parse the incoming String an do what's needed

 o log
 void log(String msg)