Android Open Source - noughts-and-crosses-android Player






From Project

Back to project page noughts-and-crosses-android.

License

The source code is released under:

MIT License

If you think the Android project noughts-and-crosses-android 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 com.JamesWhite.NoughtsAndCrosses;
//from  ww  w.  j  a va 2  s .c o m
/**
 * Player basic info about the player
 * 
 * @author James White
 *
 */

public class Player {
  
  private String name;
  private int type; // -1 or 1 (represents Nought or Cross)

  /**
   * getName
   * 
   * @return the name
   */
  public String getName() {
    
    return name;
    
  }

  /**
   * setName
   * 
   * @param name the name to set
   */
  public void setName(String name) {
    
    this.name = name;
    
  }

  /**
   * getType
   * 
   * @return the type the player is using, 1 or 0
   */
  public int getType() {
    
    return type;
    
  }

  /**
   * setType
   * 
   * @param type set the type the player is using, 1 or 0
   */
  public void setType(int type) {
    
    this.type = type;
    
  }

}




Java Source Code List

com.JamesWhite.NoughtsAndCrosses.AsyncSubmitGloabalHighScoresActivity.java
com.JamesWhite.NoughtsAndCrosses.ComputerPlayer.java
com.JamesWhite.NoughtsAndCrosses.Database.java
com.JamesWhite.NoughtsAndCrosses.GameActivity.java
com.JamesWhite.NoughtsAndCrosses.Game.java
com.JamesWhite.NoughtsAndCrosses.GlobalHighScoreActivity.java
com.JamesWhite.NoughtsAndCrosses.LoadingGloabalHighScoresActivity.java
com.JamesWhite.NoughtsAndCrosses.LocalDatabase.java
com.JamesWhite.NoughtsAndCrosses.LocalHighScoreActivity.java
com.JamesWhite.NoughtsAndCrosses.MenuActivity.java
com.JamesWhite.NoughtsAndCrosses.Player.java
com.JamesWhite.NoughtsAndCrosses.RemoteDatabase.java