Search in sources :

Example 1 with ImmutableTeamInfo

use of spacesettlers.clients.ImmutableTeamInfo in project spacesettlers by amymcgovern.

the class SpaceSettlersSimulator method updateTeamInfo.

/**
 * Update the team infomation that is sharable
 */
private void updateTeamInfo() {
    LinkedHashSet<ImmutableTeamInfo> teamInfo = new LinkedHashSet<ImmutableTeamInfo>();
    for (Team team : teams) {
        teamInfo.add(new ImmutableTeamInfo(team));
    }
    simulatedSpace.setTeamInfo(teamInfo);
}
Also used : LinkedHashSet(java.util.LinkedHashSet) ImmutableTeamInfo(spacesettlers.clients.ImmutableTeamInfo) Team(spacesettlers.clients.Team)

Aggregations

LinkedHashSet (java.util.LinkedHashSet)1 ImmutableTeamInfo (spacesettlers.clients.ImmutableTeamInfo)1 Team (spacesettlers.clients.Team)1