order, totems, visual effects

This commit is contained in:
2026-05-11 18:04:58 +02:00
parent bcdc129e67
commit 874091e9cc
25 changed files with 107 additions and 20 deletions
@@ -109,16 +109,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++;
}