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;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a board
|
* This class helps loading boards
|
||||||
*/
|
*/
|
||||||
public final class BoardLoaderUtil {
|
public final class BoardLoaderUtil {
|
||||||
private BoardLoaderUtil() {}
|
private BoardLoaderUtil() {}
|
||||||
|
@ -10,10 +10,18 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class helps with tasks which mix primitive classes and classes from external libraries
|
||||||
|
*/
|
||||||
public final class IOUtil {
|
public final class IOUtil {
|
||||||
private 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) {
|
public static List<Player> playerGenerator(Map<Connection, String> playerNames, Map<Connection, RobotID> robotIDs) {
|
||||||
List<Player> playerList = new ArrayList<>();
|
List<Player> playerList = new ArrayList<>();
|
||||||
for (Connection connection: playerNames.keySet()) {
|
for (Connection connection: playerNames.keySet()) {
|
||||||
|
@ -10,6 +10,9 @@ import inf112.fiasko.roborally.objects.ProgrammingCard;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class helps with networking tasks
|
||||||
|
*/
|
||||||
public final class NetworkUtil {
|
public final class NetworkUtil {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,9 @@ package inf112.fiasko.roborally.utility;
|
|||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class helps with tasks related to resource loading
|
||||||
|
*/
|
||||||
public final class ResourceUtil {
|
public final class ResourceUtil {
|
||||||
private ResourceUtil() {}
|
private ResourceUtil() {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user