Back to project page Airplanes.
The source code is released under:
GNU General Public License
If you think the Android project Airplanes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.axnsan.airplanes.online; /*w w w . j ava 2 s . co m*/ import java.util.Collections; import java.util.Map; import java.util.TreeMap; public class SessionData { public Map<Integer, Game> games = new TreeMap<Integer, Game>(Collections.reverseOrder()); public boolean needRebuild = false; public String username; public OnlineMatchHandler currentGame = null; public int pendingJoin = -1; public Object waitJoin = new Object(); public synchronized Game addGame(Game game) { games.put(game.gameID, game); needRebuild = true; return game; } public synchronized Game getGame(int gameID) { return games.get(gameID); } }