Android Open Source - MythTrack Title






From Project

Back to project page MythTrack.

License

The source code is released under:

MIT License

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

/**
 * Title represents a single title. It is meant to allow easier access to title attributes while
 * reducing the amount of reads from the database.
 */*from  ww  w.j  a  va  2 s. c  o  m*/
 * @author Nolan Jurgens
 */

package nolanjurgens.mythtrack.app;

////////////////////////////////////////////////////////////////////////////////////////////////////
// CLASS - Title                                                                                  //
////////////////////////////////////////////////////////////////////////////////////////////////////
public class Title
{
  // FIELDS ////////////////////////////////////////////////////////////////////////////////////////

  // Title attributes
  private long id;
  private String name;
  private String description;
  private int movementPointsModifier;
  private int nonCombatActionModifier;
  private int vitalityModifier;
  private int immunities;


  // METHODS ///////////////////////////////////////////////////////////////////////////////////////

  /**
   * Constructor
   */
  public Title()
  {
  }

  /**
   * Get the title's description.
   * @return Description.
   */
  public String getDescription()
  {
    return description;
  }
  
  
  /**
   * Get the title's database ID.
   * @return Database ID.
   */
  public long getID()
  {
    return id;
  }


  /**
   * Get the immunities the title provides.
   * @return Status immunities.
   */
  public int getImmunities()
  {
    return immunities;
  }


  /**
   * Get the title's movement points modifier.
   * @return Movement points modifier.
   */
  public int getMovementPointsModifier()
  {
    return movementPointsModifier;
  }
  
  
  /**
   * Get the name of the title.
   * @return Name of the title.
   */
  public String getName()
  {
    return name;
  }


  /**
   * Get the title's non-combat action modifier.
   * @return Non-combat action modifier.
   */
  public int getNonCombatActionModifier()
  {
    return nonCombatActionModifier;
  }


  /**
   * Get the title's vitality modifier.
   * @return Vitality modifier.
   */
  public int getVitalityModifier()
  {
    return vitalityModifier;
  }


  /**
   * Set the title's description
   * @param description Description.
   */
  public void setDescription(String description)
  {
    this.description = description;
  }
  
  
  /**
   * Set the title's ID.
   * @param id Database ID.
   */
  public void setID(long id)
  {
    this.id = id;
  }


  /**
   * Set the immunities the title provides.
   * @param immunities Immunities the title provides.
   */
  public void setImmunities(int immunities)
  {
    this.immunities = immunities;
  }


  /**
   * Set the title's movement points modifier.
   * @param movementPointsModifier Movement points modifier.
   */
  public void setMovementPointsModifier(int movementPointsModifier)
  {
    this.movementPointsModifier = movementPointsModifier;
  }
  
  
  /**
   * Set the name of the title.
   * @param name Name.
   */
  public void setName(String name)
  {
    this.name = name;
  }


  /**
   * Set the title's non-combat action modifier.
   * @param nonCombatActionModifier Non-combat action modifier.
   */
  public void setNonCombatActionModifier(int nonCombatActionModifier)
  {
    this.nonCombatActionModifier = nonCombatActionModifier;
  }


   /**
   * Set the title's vitality modifier.
   * @param vitalityModifier Vitality modifier.
   */
  public void setVitalityModifier(int vitalityModifier)
  {
    this.vitalityModifier = vitalityModifier;
  }

}




Java Source Code List

nolanjurgens.mythtrack.app.BuyItemDialog.java
nolanjurgens.mythtrack.app.CreateHeroDialog.java
nolanjurgens.mythtrack.app.DeleteHeroDialog.java
nolanjurgens.mythtrack.app.EquipmentInfoDialog.java
nolanjurgens.mythtrack.app.HeroDisplayFragment.java
nolanjurgens.mythtrack.app.HeroHelper.java
nolanjurgens.mythtrack.app.HeroList.java
nolanjurgens.mythtrack.app.HeroTrackerActivity.java
nolanjurgens.mythtrack.app.Hero.java
nolanjurgens.mythtrack.app.InventoryList.java
nolanjurgens.mythtrack.app.ItemHelper.java
nolanjurgens.mythtrack.app.ItemList.java
nolanjurgens.mythtrack.app.Item.java
nolanjurgens.mythtrack.app.MainActivity.java
nolanjurgens.mythtrack.app.RemoveItemDialog.java
nolanjurgens.mythtrack.app.SettingsActivity.java
nolanjurgens.mythtrack.app.SettingsFragment.java
nolanjurgens.mythtrack.app.StatInfoDialog.java
nolanjurgens.mythtrack.app.StatPickerDialog.java
nolanjurgens.mythtrack.app.TitleHelper.java
nolanjurgens.mythtrack.app.Title.java
nolanjurgens.mythtrack.provider.MythTrackBackup.java
nolanjurgens.mythtrack.provider.MythTrackContract.java
nolanjurgens.mythtrack.provider.MythTrackDatabase.java