models
Class Game

java.lang.Object
  extended by models.Game
Direct Known Subclasses:
Match

public class Game
extends java.lang.Object


Method Summary
 void addPlayers()
          set the players list from game server
 void addPlayers(java.util.List<com.sulake.habbo.gaming.api.domain.Player> list)
          set the players list from game server
static Game getInstance()
          Return the instance of game, if null, create a new one
 Match getMatchForPlayer(java.lang.String accessToken)
           
 int getSize()
           
 void quitGame(java.lang.String accessToken)
          Api call to Habbo server to return to flash client
 void relocateWinner(java.lang.String accessToken)
           
 void start_match()
           
 void startConnection()
          starts connection to game server
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Game getInstance()
Return the instance of game, if null, create a new one


quitGame

public void quitGame(java.lang.String accessToken)
Api call to Habbo server to return to flash client


startConnection

public void startConnection()
starts connection to game server


addPlayers

public void addPlayers()
set the players list from game server


addPlayers

public void addPlayers(java.util.List<com.sulake.habbo.gaming.api.domain.Player> list)
set the players list from game server


start_match

public void start_match()

getMatchForPlayer

public Match getMatchForPlayer(java.lang.String accessToken)
Parameters:
String - access token of the player
Returns:
the Match where the player is playing

relocateWinner

public void relocateWinner(java.lang.String accessToken)
Parameters:
String - Access Token Ends the previous game and relocate the winner into the list

getSize

public int getSize()
Returns:
int size of the players list method that returns the size of the players