|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jangband.db.PlayerClass
public class PlayerClass
Represents a row in the database from the player_classes table. This data should
only be set with information from the database or from a develper's app.
This information represents protential classes that the player can choose from
when creating a character.
| Field Summary | |
|---|---|
private int |
charisma
Class modifier for this stat. |
private int |
constitution
Class modifier for this stat. |
private java.lang.String |
description
Human readable description of this race. |
private int |
dexterity
Class modifier for this stat. |
private int |
experience
Class modifier for this stat. |
private int |
hitDie
Class modifier for this stat. |
private int |
id
Database primary key (PK) for player_races table row. |
private int |
intelligence
Class modifier for this stat. |
private java.lang.String |
playerClass
Human readable name of this class. |
private int |
spellCategoryCount
Class number of magic realms this class gets. |
private int |
strength
Class modifier for this stat. |
private int |
wisdom
Class modifier for this stat. |
| Constructor Summary | |
|---|---|
PlayerClass()
Creates an object that needs to be populated using the getters and setters. |
|
PlayerClass(int id,
java.lang.String playerClass,
int strength,
int intelligence,
int wisdom,
int dexterity,
int constitution,
int charisma,
int hitDie,
int experience,
int spellCategoryCount,
java.lang.String description)
Creates a fully populated object. |
|
| Method Summary | |
|---|---|
int |
getCharisma()
|
int |
getConstitution()
|
java.lang.String |
getDescription()
|
int |
getDexterity()
|
int |
getExperience()
|
int |
getHitDie()
|
int |
getId()
|
int |
getIntelligence()
|
java.lang.String |
getPlayerClass()
|
int |
getSpellCategoryCount()
|
int |
getStrength()
|
int |
getWisdom()
|
void |
setCharisma(int charisma)
|
void |
setConstitution(int constitution)
|
void |
setDescription(java.lang.String description)
|
void |
setDexterity(int dexterity)
|
void |
setExperience(int experience)
|
void |
setHitDie(int hitDie)
|
void |
setId(int id)
|
void |
setIntelligence(int intelligence)
|
void |
setPlayerClass(java.lang.String playerClass)
|
void |
setSpellCategoryCount(int spellCategoryCount)
|
void |
setStrength(int strength)
|
void |
setWisdom(int wisdom)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int id
private java.lang.String playerClass
private int strength
private int intelligence
private int wisdom
private int dexterity
private int constitution
private int charisma
private int hitDie
private int experience
private int spellCategoryCount
private java.lang.String description
| Constructor Detail |
|---|
public PlayerClass()
public PlayerClass(int id,
java.lang.String playerClass,
int strength,
int intelligence,
int wisdom,
int dexterity,
int constitution,
int charisma,
int hitDie,
int experience,
int spellCategoryCount,
java.lang.String description)
id - playerClass - strength - intelligence - wisdom - dexterity - constitution - charisma - hitDie - experience - spellCategoryCount - description - | Method Detail |
|---|
public int getId()
public void setId(int id)
id - the id to setpublic java.lang.String getPlayerClass()
public void setPlayerClass(java.lang.String playerClass)
playerClass - the playerClass to setpublic int getStrength()
public void setStrength(int strength)
strength - the strength to setpublic int getIntelligence()
public void setIntelligence(int intelligence)
intelligence - the intelligence to setpublic int getWisdom()
public void setWisdom(int wisdom)
wisdom - the wisdom to setpublic int getDexterity()
public void setDexterity(int dexterity)
dexterity - the dexterity to setpublic int getConstitution()
public void setConstitution(int constitution)
constitution - the constitution to setpublic int getCharisma()
public void setCharisma(int charisma)
charisma - the charisma to setpublic int getHitDie()
public void setHitDie(int hitDie)
hitDie - the hitDie to setpublic int getExperience()
public void setExperience(int experience)
experience - the experience to setpublic int getSpellCategoryCount()
public void setSpellCategoryCount(int spellCategoryCount)
spellCategoryCount - the spellCategoryCount to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||