mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Legger til manglende kommentarer
This commit is contained in:
parent
76c3a80da3
commit
41a9647fa2
@ -14,7 +14,7 @@ import java.io.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Loads a board
|
||||
* This class helps loading boards
|
||||
*/
|
||||
public final class BoardLoaderUtil {
|
||||
private BoardLoaderUtil() {}
|
||||
|
@ -10,10 +10,18 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* This class helps with tasks which mix primitive classes and classes from external libraries
|
||||
*/
|
||||
public final class IOUtil {
|
||||
private IOUtil() {}
|
||||
|
||||
|
||||
/**
|
||||
* Generates a list of players from a map of player names and a map of robot ids
|
||||
* @param playerNames A map between connections and player names
|
||||
* @param robotIDs A map between connections and robot ids
|
||||
* @return A list of players
|
||||
*/
|
||||
public static List<Player> playerGenerator(Map<Connection, String> playerNames, Map<Connection, RobotID> robotIDs) {
|
||||
List<Player> playerList = new ArrayList<>();
|
||||
for (Connection connection: playerNames.keySet()) {
|
||||
|
@ -10,6 +10,9 @@ import inf112.fiasko.roborally.objects.ProgrammingCard;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* This class helps with networking tasks
|
||||
*/
|
||||
public final class NetworkUtil {
|
||||
|
||||
/**
|
||||
|
@ -2,6 +2,9 @@ package inf112.fiasko.roborally.utility;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* This class helps with tasks related to resource loading
|
||||
*/
|
||||
public final class ResourceUtil {
|
||||
private ResourceUtil() {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user