All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.ClientScrobblePlayer

java.lang.Object
   |
   +----game.Player
           |
           +----scrobble.ScrobblePlayer
                   |
                   +----scrobble.ClientScrobblePlayer

public class ClientScrobblePlayer
extends ScrobblePlayer
The ClientScrobblePlayer class adds the client functionnalities to ScrobblePlayer, such as displaying.


Variable Index

 o BigPanel
The panel which represents the Player (his name and his score) and his letters.
 o lettersPanel
The panel which represents the letters of Player.

Constructor Index

 o ClientScrobblePlayer()
Creates a new ClientScrobblePlayer
 o ClientScrobblePlayer(int, Object)
Creates a new ClientScrobblePlayer
 o ClientScrobblePlayer(String, int)
Creates a new ClientScrobblePlayer with his name and his identity.
 o ClientScrobblePlayer(String, int, Letter, Letter, Letter)
creates a new ClientScrobblePlayer with his name.

Method Index

 o frameReceived(Object, LinkFrame)
Invoked when a new data frame is received.
 o getComponent()
Returns a Panel containing the name, the score and the letters of the Player
 o updateLettersPanel()
[DESCRIBE ME]

Variables

 o lettersPanel
 JPanel lettersPanel
The panel which represents the letters of Player.

 o BigPanel
 JPanel BigPanel
The panel which represents the Player (his name and his score) and his letters.

Constructors

 o ClientScrobblePlayer
 public ClientScrobblePlayer()
Creates a new ClientScrobblePlayer

 o ClientScrobblePlayer
 public ClientScrobblePlayer(int id,
                             Object frameData)
Creates a new ClientScrobblePlayer

 o ClientScrobblePlayer
 public ClientScrobblePlayer(String name,
                             int score,
                             Letter letter1,
                             Letter letter2,
                             Letter letter3)
creates a new ClientScrobblePlayer with his name.

Parameters:
name - the ClientScrobblePlayer's name.
 o ClientScrobblePlayer
 public ClientScrobblePlayer(String name,
                             int id)
Creates a new ClientScrobblePlayer with his name and his identity.

Parameters:
name - the ClientScrobblePlayer's name.
id - the identity of Player.

Methods

 o getComponent
 public Component getComponent()
Returns a Panel containing the name, the score and the letters of the Player

Overrides:
getComponent in class Player
 o updateLettersPanel
 void updateLettersPanel()
[DESCRIBE ME]

 o 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.
Overrides:
frameReceived in class Player

All Packages  Class Hierarchy  This Package  Previous  Next  Index