basic camera movement

This commit is contained in:
Johannes Schmelz
2024-12-10 11:22:21 +01:00
parent e1190cd4a2
commit c6ad605021
5 changed files with 125 additions and 71 deletions

View File

@@ -120,7 +120,7 @@ public class PlayerHandler {
* @param index the index of the queue
* @return the Player at the required index
*/
Player getPlayerAtIndex(int index) {
public Player getPlayerAtIndex(int index) {
return players.get(index);
}

View File

@@ -147,6 +147,10 @@ public class Board {
return getHotels().filter(hotel -> hotel.getFieldID() == fieldId).findFirst().orElse(null);
}
public Figure getFigure(int playerId) {
return getFigures().filter(figure -> figure.getId() == playerId).findFirst().orElse(null);
}
/**
* Returns a stream of all hotels currently on the map.
*