All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.ClientBag
java.lang.Object
|
+----scrobble.Bag
|
+----scrobble.ClientBag
- public class ClientBag
- extends Bag
- implements GameLinkListener, GameLinkConstants
This class is the client version of the class Bag
, mostly
devoted for the graphic interface.
-
baglabel
- The label which contains the score of Player;
-
bagSize
-
-
debug
- if true, enables the printing of debug informations on the console.
-
letters
-
-
ClientBag()
- Creates a new ClientBag
-
ClientBag(int)
- Creates a new ClientBag knowing the number of letters that it must contain.
-
displayLetters()
- Displays the letter that is containing
-
frameReceived(Object, LinkFrame)
- Invoked when a new data frame is received.
-
getComponent()
-
-
getLetterNbr()
- Returns the number of letters left
-
setLetterNbr(int)
-
-
updateLabel()
-
debug
static boolean debug
- if true, enables the printing of debug informations on the console.
baglabel
protected JLabel baglabel
- The label which contains the score of Player;
bagSize
protected int bagSize
letters
Vector letters
ClientBag
public ClientBag()
- Creates a new ClientBag
ClientBag
public ClientBag(int bagSize)
- Creates a new ClientBag knowing the number of letters that it must contain.
getLetterNbr
public int getLetterNbr()
- Returns the number of letters left
setLetterNbr
void setLetterNbr(int newSize)
updateLabel
void updateLabel()
displayLetters
public String displayLetters()
- Displays the letter that is containing
frameReceived
public void frameReceived(Object link,
LinkFrame frame)
- Invoked when a new data frame is received.
- Parameters:
- frame - the frame that has just been received.
getComponent
public Component getComponent()
All Packages Class Hierarchy This Package Previous Next Index