Android Open Source - eent-for-android Lead Tile






From Project

Back to project page eent-for-android.

License

The source code is released under:

GNU General Public License

If you think the Android project eent-for-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

/*
  It is distributed under the GNU Public Licence (GPL) version 2.  See
  http://www.gnu.org/ for further details of the GPL.
 *///from w ww. ja v a 2 s.c om
package eu.veldsoft.eent;

/**
 * Write a description of class Leader here.
 * 
 * @author (Mohannad)
 * @version (1.1)
 */
class LeadTile extends Tile {
  public static final int LEADER_KING = 1110;
  public static final int LEADER_PRIEST = 1111;
  public static final int LEADER_FARMER = 1112;
  public static final int LEADER_TRADER = 1113;

  public static final int LEAD = 1110;

  private int leaderType;
  private Player owner;

  /**
   * Constructor for objects of class Leader
   */
  public LeadTile(int newType, Player own) {
    super(Tile.LEAD_TILE);
    this.leaderType = newType;
    this.owner = own;
  }

  /**
   * return the type of leader
   */
  public int getLeaderType() {
    return this.leaderType;
  }

  /**
   * return the player associated with the leadtile
   */
  public Player getPlayer() {
    return this.owner;
  }

}




Java Source Code List

eu.veldsoft.eent.BagListener.java
eu.veldsoft.eent.Bag.java
eu.veldsoft.eent.Board.java
eu.veldsoft.eent.ButtonListener2.java
eu.veldsoft.eent.ButtonListener.java
eu.veldsoft.eent.CatTile.java
eu.veldsoft.eent.CheckBoxListener.java
eu.veldsoft.eent.CivTile.java
eu.veldsoft.eent.ComputerPlayer.java
eu.veldsoft.eent.Grid.java
eu.veldsoft.eent.HumanPlayer.java
eu.veldsoft.eent.Kingdom.java
eu.veldsoft.eent.LeadTile.java
eu.veldsoft.eent.Player.java
eu.veldsoft.eent.ScoreCounter.java
eu.veldsoft.eent.TemTile.java
eu.veldsoft.eent.Tigris2.java
eu.veldsoft.eent.Tile.java
eu.veldsoft.eent.Util.java