public class GameSession
Created by richard on 23/06/2016. A GDX screen (i.e. a render loop, used whenever a game is in progress) intended to provide continuity between multiple games. If you're only playing a single game this could be part of the game class, but for a series of games you pass a single GameSession from game to game to maintain the same players, scores, (network connections?)
Constructor and Description |
---|
GameSession(AbstractGameFactory factory,
boolean useSimpleGameSettings)
Created by richard on 23/06/2016.
A GDX screen (i.e. a render loop, used whenever a game is in progress)
intended to provide continuity between multiple games.
If you're only playing a single game this could be part of the game class,
but for a series of games you pass a single GameSession from game to game
to maintain the same players, scores, (network connections?)
|
Modifier and Type | Method and Description |
---|---|
void |
checkForPlayerDisconnects() |
void |
checkForPlayerJoins() |
void |
createClient(com.esotericsoftware.kryonet.Connection connection) |
void |
createKBPlayer() |
int |
createNetworkPlayerOnServer(java.lang.String name) |
void |
dispose() |
java.util.List<uk.co.electronstudio.retrowar.Player> |
findWinners() |
boolean |
getBuffering() |
java.util.ArrayList<uk.co.electronstudio.retrowar.network.ClientPlayer> |
getClientPlayers() |
java.util.ArrayList<com.esotericsoftware.kryonet.Connection> |
getConnections() |
boolean |
getDisposed() |
AbstractGameFactory |
getFactory() |
Game |
getGame() |
boolean |
getKBinUse() |
Player |
getKeyboardPlayer() |
int |
getLevel() |
Game |
getMetaGame() |
Game |
getNextGame() |
java.util.ArrayList<uk.co.electronstudio.retrowar.Player> |
getPlayers() |
InputDevice |
getPreSelectedInputDevice() |
float |
getReadyTimer() |
boolean |
getRequestQuit() |
java.lang.String |
getServer() |
GameSession.GameState |
getState() |
boolean |
getUseSimpleGameSettings() |
void |
hide() |
void |
metaGameOver() |
java.lang.String |
nextPlayerColor() |
java.lang.String |
nextPlayerColor2() |
java.lang.String |
nextPlayerName() |
void |
postMessage(java.lang.String s) |
void |
quit() |
void |
reallyQuit() |
void |
removeClient(com.esotericsoftware.kryonet.Connection client) |
void |
render(float deltaTime) |
void |
resize(int width,
int height) |
void |
setBuffering(boolean p) |
void |
setDisposed(boolean p) |
void |
setGame(Game p) |
void |
setKBinUse(boolean p) |
void |
setKeyboardPlayer(Player p) |
void |
setLevel(int p) |
void |
setMetaGame(Game p) |
void |
setNextGame(Game p) |
void |
setPlayers(java.util.ArrayList<uk.co.electronstudio.retrowar.Player> p) |
void |
setPreSelectedInputDevice(InputDevice p) |
void |
setReadyTimer(float p) |
void |
setRequestQuit(boolean p) |
void |
setState(GameSession.GameState p) |
void |
show() |
uk.co.electronstudio.retrowar.menu.Menu |
standardMenu() |
void |
startSubgameInMetagame(Game metagame,
Game game) |
public GameSession(AbstractGameFactory factory, boolean useSimpleGameSettings)
Created by richard on 23/06/2016. A GDX screen (i.e. a render loop, used whenever a game is in progress) intended to provide continuity between multiple games. If you're only playing a single game this could be part of the game class, but for a series of games you pass a single GameSession from game to game to maintain the same players, scores, (network connections?)
public Game getGame()
public void setGame(Game p)
public InputDevice getPreSelectedInputDevice()
public void setPreSelectedInputDevice(InputDevice p)
public int getLevel()
public void setLevel(int p)
public Game getNextGame()
public void setNextGame(Game p)
public Game getMetaGame()
public void setMetaGame(Game p)
public float getReadyTimer()
public void setReadyTimer(float p)
public GameSession.GameState getState()
public void setState(GameSession.GameState p)
public java.util.ArrayList<uk.co.electronstudio.retrowar.Player> getPlayers()
public void setPlayers(java.util.ArrayList<uk.co.electronstudio.retrowar.Player> p)
public java.util.ArrayList<uk.co.electronstudio.retrowar.network.ClientPlayer> getClientPlayers()
public java.util.ArrayList<com.esotericsoftware.kryonet.Connection> getConnections()
public boolean getBuffering()
public void setBuffering(boolean p)
public boolean getKBinUse()
public void setKBinUse(boolean p)
public java.lang.String getServer()
public boolean getDisposed()
public void setDisposed(boolean p)
public void dispose()
public void createClient(com.esotericsoftware.kryonet.Connection connection)
public void removeClient(com.esotericsoftware.kryonet.Connection client)
public Player getKeyboardPlayer()
public void setKeyboardPlayer(Player p)
public void createKBPlayer()
public uk.co.electronstudio.retrowar.menu.Menu standardMenu()
public int createNetworkPlayerOnServer(java.lang.String name)
public void show()
public void checkForPlayerJoins()
public void checkForPlayerDisconnects()
public void resize(int width, int height)
public void render(float deltaTime)
public void hide()
public java.lang.String nextPlayerName()
public java.lang.String nextPlayerColor()
public java.lang.String nextPlayerColor2()
public void postMessage(java.lang.String s)
public boolean getRequestQuit()
public void setRequestQuit(boolean p)
public void quit()
public void reallyQuit()
public java.util.List<uk.co.electronstudio.retrowar.Player> findWinners()
public void metaGameOver()
public AbstractGameFactory getFactory()
public boolean getUseSimpleGameSettings()