All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.Scrobble
java.lang.Object
|
+----game.Game
|
+----scrobble.Scrobble
- public class Scrobble
- extends Game
- implements GameLinkConstants, ScrobbleConstants
Scrobble.java
Implement the different methods mentionned in Game class.
-
bag
- Bag used by Scrabble
-
board
- Board used by Scrabble
-
boardshape
-
-
componentsCreated
-
-
debug
- if true, enables the printing of debug informations on the console.
-
dictionnary
- Dictionnary used by Scrabble
-
language
- Language used by Scrabble
-
max
-
-
nameLanguage
-
-
observable
-
-
privateGame
-
-
timer
- Hourglass used by Scrabble
-
Scrobble()
-
-
configure(Configuration)
- Gives the configuration that the first player wants
-
createGameComponents(Configuration)
-
-
createPlayer(String, GameLinkFilter)
- Creats a new Player
-
createScrobbleShape()
- Returns the BoardShape that will make the board look like
a scrabble board.
-
frameReceived(Object, LinkFrame)
- Messaged when a new data frame is received by the
GameLinkFilter
object and this frame belongs to the groups the GameLinkListener
asked to listen to.
-
removePlayer(Player)
- Removes a Player from the Game
-
setupPlayer(Player)
-
-
start()
- Plays a party of scrobble
-
updatePlayer(Player)
- [DESCRIBE ME]
-
yourTurn(ServerScrobblePlayer)
- Makes Player play a turn
board
ServerBoard board
- Board used by Scrabble
bag
ServerBag bag
- Bag used by Scrabble
dictionnary
Dico dictionnary
- Dictionnary used by Scrabble
language
ServerLanguage language
- Language used by Scrabble
timer
Timer timer
- Hourglass used by Scrabble
observable
Observable observable
nameLanguage
String nameLanguage
boardshape
BoardShape boardshape
max
int max
privateGame
boolean privateGame
debug
protected boolean debug
- if true, enables the printing of debug informations on the console.
componentsCreated
boolean componentsCreated
Scrobble
public Scrobble()
createPlayer
public Player createPlayer(String name,
GameLinkFilter gamelink)
- Creats a new Player
- Parameters:
- name - the name of the new player
- gamelink - the link of the player with the net
- Returns:
- the new player
- Overrides:
- createPlayer in class Game
setupPlayer
public void setupPlayer(Player player)
- Overrides:
- setupPlayer in class Game
createGameComponents
public void createGameComponents(Configuration config)
updatePlayer
public void updatePlayer(Player player)
- [DESCRIBE ME]
removePlayer
public void removePlayer(Player player)
- Removes a Player from the Game
- Parameters:
- player - the player who will be removed
- Overrides:
- removePlayer in class Game
configure
public void configure(Configuration config)
- Gives the configuration that the first player wants
createScrobbleShape
public BoardShape createScrobbleShape()
- Returns the BoardShape that will make the board look like
a scrabble board.
frameReceived
public void frameReceived(Object link,
LinkFrame frame)
- Messaged when a new data frame is received by the
GameLinkFilter
object and this frame belongs to the groups the GameLinkListener
asked to listen to.
- Parameters:
- link - the GameLink that actually received the frame.
- frame - the frame that has just been received.
- Overrides:
- frameReceived in class Game
- See Also:
- GameLink, frameReceived
yourTurn
public void yourTurn(ServerScrobblePlayer player)
- Makes Player play a turn
- Parameters:
- player - the new player
start
public void start()
- Plays a party of scrobble
- Overrides:
- start in class Game
All Packages Class Hierarchy This Package Previous Next Index