Back to project page AmazingGame.
The source code is released under:
GNU General Public License
If you think the Android project AmazingGame 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 game.world; /* w w w . j a va 2s . c o m*/ import java.util.Vector; import game.objects.Unit; public class PlayerManager { public static int currentPlayerCap = 0; private static int currentPlayer = 0; public static void addNewPlayer() { currentPlayerCap++; } public static void endTurn() { if(currentPlayer == currentPlayerCap-1) { currentPlayer = 0; } else { currentPlayer++; } System.out.println(currentPlayer); } public static int getCurrPlayerTurn() { return currentPlayer; } }