Back to project page MythTrack.
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.
/** * 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; } }