public final class Force extends Object implements Comparable<Force>
Force class is used to get information about each force in a match.
Normally this is considered a team.
It is not called a team because players on the same force do not necessarily need to be allied at the beginning of a match.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Force other) |
boolean |
equals(Object o) |
int |
getID()
Retrieves the unique ID that represents this
Force. |
String |
getName()
Retrieves the name of the
Force. |
List<Player> |
getPlayers()
Retrieves the set of players that belong to this
Force. |
int |
hashCode() |
public int getID()
Force.Force.public String getName()
Force.public List<Player> getPlayers()
Force.Force.public int compareTo(Force other)
compareTo in interface Comparable<Force>Copyright © 2022. All rights reserved.