Android Open Source - AmazingGame Player Manager






From Project

Back to project page AmazingGame.

License

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.

Java Source Code

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;
  }
}




Java Source Code List

game.IOSLauncher.java
game.MyGdxGame.java
game.android.AndroidLauncher.java
game.client.HtmlLauncher.java
game.desktop.DesktopLauncher.java
game.generator.MapGenerator.java
game.helpers.AssetLoader.java
game.helpers.Constants.java
game.helpers.MapHelper.java
game.helpers.TileClickHelper.java
game.input.MapInputHandler.java
game.objects.BlurpleBuilding.java
game.objects.BurnedMoose.java
game.objects.Grass.java
game.objects.PoopDesert.java
game.objects.River.java
game.objects.TileSprite.java
game.objects.Tree.java
game.objects.Unit.java
game.objects.Wall.java
game.objects.Water.java
game.screens.GameScreen.java
game.world.GameMap.java
game.world.GameRenderer.java
game.world.PlayerManager.java