mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-11-03 03:03:43 +01:00 
			
		
		
		
	Gjør det mulig å hente ut spillere fra et tegnbart brett
This commit is contained in:
		@@ -57,4 +57,11 @@ public interface DrawableGame {
 | 
			
		||||
     * @return A list of all robots to draw
 | 
			
		||||
     */
 | 
			
		||||
    List<Robot> getRobotsToDraw();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Gets a list of active players to receive information about player names
 | 
			
		||||
     *
 | 
			
		||||
     * @return A list of players
 | 
			
		||||
     */
 | 
			
		||||
    List<Player> getPlayers();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -114,6 +114,11 @@ public class RoboRallyGame implements DrawableGame, InteractableGame {
 | 
			
		||||
        return gameBoard.getAliveRobots();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<Player> getPlayers() {
 | 
			
		||||
        return new ArrayList<>(this.playerList);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public GameState getGameState() {
 | 
			
		||||
        return gameState;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user