public final class IOUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<DrawableObject> |
getDrawableObjectsFromGame(DrawableGame game,
int tileWidth,
int tileHeight)
Gets a list of all elements which should be drawn from the game provided
|
static java.util.List<Player> |
playerGenerator(java.util.Map<com.esotericsoftware.kryonet.Connection,java.lang.String> playerNames,
java.util.Map<com.esotericsoftware.kryonet.Connection,RobotID> robotIDs)
Generates a list of players from a map of player names and a map of robot ids
|
public static java.util.List<Player> playerGenerator(java.util.Map<com.esotericsoftware.kryonet.Connection,java.lang.String> playerNames, java.util.Map<com.esotericsoftware.kryonet.Connection,RobotID> robotIDs)
playerNames
- A map between connections and player namesrobotIDs
- A map between connections and robot idspublic static java.util.List<DrawableObject> getDrawableObjectsFromGame(DrawableGame game, int tileWidth, int tileHeight)
game
- A game implementing DrawableGametileWidth
- The with of all tiles to be drawntileHeight
- The height of all tiles to be drawn