Android Open Source - rpg Level Detail






From Project

Back to project page rpg.

License

The source code is released under:

Apache License

If you think the Android project rpg 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 org.aschyiel.rpg.level;
/*  w w  w . j av  a  2s. com*/
/**
* Describes minute details within a level --- immutable.
*/
public final class LevelDetail
{
  private final UnitType unitType;
  private final Player owner;
  
  /**
  * The tile/square position within the board/terrain.
  */
  private final int row;
  private final int column;

  private final LandType landType;

  //
  // Mututally exclusive constructors.
  //

  /**
  * When describing tile land-types.
  */
  public LevelDetail( LandType landType, int row, int column )
  {
    this.landType = landType;
    this.unitType = null;
    this.owner    = null;
    this.row      = row;
    this.column   = column;
  }

  /**
  * When describing a unit (spawn) position.
  */
  public LevelDetail( UnitType unitType, int row, int column, Player owner )
  {
    this.landType = null;
    this.unitType = unitType;
    this.row      = row;
    this.column   = column;
    this.owner    = owner;
  }

  public int getRow()
  {
    return row;
  }

  public int getColumn()
  {
    return column;
  }

  public UnitType getUnitType()
  {
    return unitType;
  }
  
  public Player getOwner()
  {
    return owner;
  }

  public LandType getLandType()
  {
    return landType;
  }
}




Java Source Code List

org.aschyiel.rpg.Coords.java
org.aschyiel.rpg.Focus.java
org.aschyiel.rpg.GameObjectFactory.java
org.aschyiel.rpg.GameObject.java
org.aschyiel.rpg.ICanHasFocus.java
org.aschyiel.rpg.IFullGameObject.java
org.aschyiel.rpg.IGameObject.java
org.aschyiel.rpg.PowerChords.java
org.aschyiel.rpg.Resorcerer.java
org.aschyiel.rpg.activities.Launcher.java
org.aschyiel.rpg.activities.Sandbox.java
org.aschyiel.rpg.activities.Terrain.java
org.aschyiel.rpg.activities.sandbox.BasicCombat.java
org.aschyiel.rpg.activities.sandbox.BasicMovement.java
org.aschyiel.rpg.activities.sandbox.MovementVsLandTypes.java
org.aschyiel.rpg.graph.ChessBoard.java
org.aschyiel.rpg.graph.DefaultPathFinder.java
org.aschyiel.rpg.graph.GirlFriend.java
org.aschyiel.rpg.graph.NavPath.java
org.aschyiel.rpg.graph.Navigator.java
org.aschyiel.rpg.graph.OnSquareClickHandler.java
org.aschyiel.rpg.graph.PathFinder.java
org.aschyiel.rpg.graph.Step.java
org.aschyiel.rpg.graph.VacancySubscriber.java
org.aschyiel.rpg.level.LandType.java
org.aschyiel.rpg.level.LevelDetail.java
org.aschyiel.rpg.level.Level.java
org.aschyiel.rpg.level.Player.java
org.aschyiel.rpg.level.UnitType.java