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.
-
BigPanel
- The panel which represents the Player (his name and his score) and his letters.
-
lettersPanel
- The panel which represents the letters of Player.
-
ClientScrobblePlayer()
- Creates a new ClientScrobblePlayer
-
ClientScrobblePlayer(int, Object)
- Creates a new ClientScrobblePlayer
-
ClientScrobblePlayer(String, int)
- Creates a new ClientScrobblePlayer with his name and his identity.
-
ClientScrobblePlayer(String, int, Letter, Letter, Letter)
- creates a new ClientScrobblePlayer with his name.
-
frameReceived(Object, LinkFrame)
- Invoked when a new data frame is received.
-
getComponent()
- Returns a Panel containing the name, the score and the letters of the Player
-
updateLettersPanel()
- [DESCRIBE ME]
lettersPanel
JPanel lettersPanel
- The panel which represents the letters of Player.
BigPanel
JPanel BigPanel
- The panel which represents the Player (his name and his score) and his letters.
ClientScrobblePlayer
public ClientScrobblePlayer()
- Creates a new ClientScrobblePlayer
ClientScrobblePlayer
public ClientScrobblePlayer(int id,
Object frameData)
- Creates a new ClientScrobblePlayer
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.
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.
getComponent
public Component getComponent()
- Returns a Panel containing the name, the score and the letters of the Player
- Overrides:
- getComponent in class Player
updateLettersPanel
void updateLettersPanel()
- [DESCRIBE ME]
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