All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.Bag

java.lang.Object
   |
   +----scrobble.Bag

public class Bag
extends Object
implements ScrobbleConstants
This class defines the object . This object contains the letters not already given to the players. It is able to initialize itself at the beginning of the game, empty itself at any time, transmit and receive its data threw the net-game.


Variable Index

 o debug
 o letter
Letter.
 o letters
LinkFrame linkFrame;

Constructor Index

 o Bag()
Creates a new Bag
 o Bag(Distribution)
Creates a new Bag with the appropriate distribution depending on the language chosen

Method Index

 o emptyBag()
empty Bag
 o initBag(Distribution)
Gets the distribution fitting the language chosen
 o main(String[])
Test stuff.

Variables

 o debug
 static boolean debug
 o letter
 Letter letter
Letter. Contains objects of type Letter.

 o letters
 Vector letters
LinkFrame linkFrame;

Constructors

 o Bag
 public Bag()
Creates a new Bag

 o Bag
 public Bag(Distribution distribution)
Creates a new Bag with the appropriate distribution depending on the language chosen

Methods

 o initBag
 public void initBag(Distribution distribution)
Gets the distribution fitting the language chosen

 o emptyBag
 public void emptyBag()
empty Bag

 o main
 public static void main(String args[])
Test stuff.


All Packages  Class Hierarchy  This Package  Previous  Next  Index