|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jangband.db.PlayerRace
public class PlayerRace
Represents a row in the database from the player_races table. This data should
only be set with information from the database or from a develper's app.
This information represents protential races that the player can choose from
when creating a character.
| Field Summary | |
|---|---|
private int |
charisma
Racial modifier for this stat. |
private int |
constitution
Racial modifier for this stat. |
private java.lang.String |
description
Human readable description of race. |
private int |
dexterity
Racial modifier for this stat. |
private int |
experience
Racial modifier for this stat. |
private int |
hit_die
Racial modifier for this stat. |
private int |
id
Database primary key (PK) for player_races table row. |
private int |
infravision
Racial modifier for this stat. |
private int |
intelligence
Racial modifier for this stat. |
private java.lang.String |
picture
Image files for race based on this string. |
private java.lang.String |
playeRace
Human readable name of the race. |
private int |
strength
Racial modifier for this stat. |
private int |
wisdom
Racial modifier for this stat. |
| Constructor Summary | |
|---|---|
PlayerRace()
Creates an object that needs to be populated using the getters and setters. |
|
PlayerRace(int id,
java.lang.String playerRace,
java.lang.String picture,
int strength,
int intelligence,
int wisdom,
int dexterity,
int constitution,
int charisma,
int hit_die,
int experience,
int infravision,
java.lang.String description)
Creates a fully populated object. |
|
| Method Summary | |
|---|---|
int |
getCharisma()
Represents the racial modifier to this stat. |
int |
getConstitution()
Represents the racial modifier to this stat. |
java.lang.String |
getDescription()
Human readable description of this race. |
int |
getDexterity()
Represents the racial modifier to this stat. |
int |
getExperience()
Represents the racial modifier to this stat. |
int |
getHit_die()
Represents the racial modifier to this stat. |
int |
getId()
Gets the primary key of this row in the database. |
int |
getInfravision()
Represents the racial modifier to this stat. |
int |
getIntelligence()
Represents the racial modifier to this stat. |
java.lang.String |
getPicture()
A string representing some pattern to match in order to find images find an image representing the race of the character. |
java.lang.String |
getPlayeRace()
Returns a human readable String representing the race of the character. |
int |
getStrength()
Represents the racial modifier to this stat. |
int |
getWisdom()
Represents the racial modifier to this stat. |
void |
setCharisma(int charisma)
Should only be set with data from the database or a developer app. |
void |
setConstitution(int constitution)
Should only be set with data from the database or a developer app. |
void |
setDescription(java.lang.String description)
Should only be set with data from the database or a developer app. |
void |
setDexterity(int dexterity)
Should only be set with data from the database or a developer app. |
void |
setExperience(int experience)
Should only be set with data from the database or a developer app. |
void |
setHit_die(int hit_die)
Should only be set with data from the database or a developer app. |
void |
setId(int id)
Should only be set with data from the database or a developer app. |
void |
setInfravision(int infravision)
Should only be set with data from the database or a developer app. |
void |
setIntelligence(int intelligence)
Should only be set with data from the database or a developer app. |
void |
setPicture(java.lang.String picture)
Should only be set with data from the database or a developer app. |
void |
setPlayeRace(java.lang.String player_race)
Should only be set with data from the database or a developer app. |
void |
setStrength(int strength)
Should only be set with data from the database or a developer app. |
void |
setWisdom(int wisdom)
Should only be set with data from the database or a developer app. |
| 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 playeRace
private java.lang.String picture
private int strength
private int intelligence
private int wisdom
private int dexterity
private int constitution
private int charisma
private int hit_die
private int experience
private int infravision
private java.lang.String description
| Constructor Detail |
|---|
public PlayerRace()
public PlayerRace(int id,
java.lang.String playerRace,
java.lang.String picture,
int strength,
int intelligence,
int wisdom,
int dexterity,
int constitution,
int charisma,
int hit_die,
int experience,
int infravision,
java.lang.String description)
id - playerRace - picture - strength - intelligence - wisdom - dexterity - constitution - charisma - hit_die - experience - infravision - description - | Method Detail |
|---|
public int getId()
public void setId(int id)
id - the id to setpublic java.lang.String getPlayeRace()
public void setPlayeRace(java.lang.String player_race)
playeRace - the playeRace to setpublic java.lang.String getPicture()
public void setPicture(java.lang.String picture)
picture - the picture 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 getHit_die()
public void setHit_die(int hit_die)
hit_die - the hit_die to setpublic int getExperience()
public void setExperience(int experience)
experience - the experience to setpublic int getInfravision()
public void setInfravision(int infravision)
infravision - the infravision 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 | |||||||||