Merge pull request #95 from rubenpirreram/GUI

G UI
This commit is contained in:
rubenpirreram
2026-05-12 14:33:57 +02:00
committed by GitHub
49 changed files with 665 additions and 216 deletions
@@ -122,7 +122,7 @@ public class Game implements Serializable {
/**
* The order logic card associated with this game.
*/
private OrderLogicCard orderLogicCard;
public OrderLogicCard orderLogicCard;
/**
* The board associated with this game.
@@ -123,16 +123,17 @@ public abstract class OrderLogicCard implements Serializable {
}
/**
* TODO rifare javadoc
* Returns the {@code Player}'s position based on it's {@code Username}.
* @param username The desired {@code Player}'s username.
* @return {@code int} - the {@code Player}'s position.
* @see Player
*/
protected int getPosition(String username)
public int getPosition(String username)
{
int pos = 0;
for (Player p : players) {
if (p.getUserName().equals(username))
for (OrderPlayer p : playerList) {
if (p.player.getUserName().equals(username))
return pos;
pos++;
}