org.jangband.db
Class PlayerRace

java.lang.Object
  extended by org.jangband.db.PlayerRace

public class PlayerRace
extends java.lang.Object

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

id

private int id
Database primary key (PK) for player_races table row.


playeRace

private java.lang.String playeRace
Human readable name of the race.


picture

private java.lang.String picture
Image files for race based on this string. For instance, 'elf*.jpg' equals both 'elff.jpg' and 'elfm.jpg'


strength

private int strength
Racial modifier for this stat.


intelligence

private int intelligence
Racial modifier for this stat.


wisdom

private int wisdom
Racial modifier for this stat.


dexterity

private int dexterity
Racial modifier for this stat.


constitution

private int constitution
Racial modifier for this stat.


charisma

private int charisma
Racial modifier for this stat.


hit_die

private int hit_die
Racial modifier for this stat.


experience

private int experience
Racial modifier for this stat.


infravision

private int infravision
Racial modifier for this stat.


description

private java.lang.String description
Human readable description of race.

Constructor Detail

PlayerRace

public PlayerRace()
Creates an object that needs to be populated using the getters and setters.


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)
Creates a fully populated object.

Parameters:
id -
playerRace -
picture -
strength -
intelligence -
wisdom -
dexterity -
constitution -
charisma -
hit_die -
experience -
infravision -
description -
Method Detail

getId

public int getId()
Gets the primary key of this row in the database.

Returns:
the id

setId

public void setId(int id)
Should only be set with data from the database or a developer app.

Parameters:
id - the id to set

getPlayeRace

public java.lang.String getPlayeRace()
Returns a human readable String representing the race of the character.

Returns:
the playeRace

setPlayeRace

public void setPlayeRace(java.lang.String player_race)
Should only be set with data from the database or a developer app.

Parameters:
playeRace - the playeRace to set

getPicture

public 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. For instance, 'human*.jpg' would represent both 'humanf.jpg' and 'humanm.jpg' for male and female picturers of humans.

Returns:
the picture

setPicture

public void setPicture(java.lang.String picture)
Should only be set with data from the database or a developer app.

Parameters:
picture - the picture to set

getStrength

public int getStrength()
Represents the racial modifier to this stat.

Returns:
the strength

setStrength

public void setStrength(int strength)
Should only be set with data from the database or a developer app.

Parameters:
strength - the strength to set

getIntelligence

public int getIntelligence()
Represents the racial modifier to this stat.

Returns:
the intelligence

setIntelligence

public void setIntelligence(int intelligence)
Should only be set with data from the database or a developer app.

Parameters:
intelligence - the intelligence to set

getWisdom

public int getWisdom()
Represents the racial modifier to this stat.

Returns:
the wisdom

setWisdom

public void setWisdom(int wisdom)
Should only be set with data from the database or a developer app.

Parameters:
wisdom - the wisdom to set

getDexterity

public int getDexterity()
Represents the racial modifier to this stat.

Returns:
the dexterity

setDexterity

public void setDexterity(int dexterity)
Should only be set with data from the database or a developer app.

Parameters:
dexterity - the dexterity to set

getConstitution

public int getConstitution()
Represents the racial modifier to this stat.

Returns:
the constitution

setConstitution

public void setConstitution(int constitution)
Should only be set with data from the database or a developer app.

Parameters:
constitution - the constitution to set

getCharisma

public int getCharisma()
Represents the racial modifier to this stat.

Returns:
the charisma

setCharisma

public void setCharisma(int charisma)
Should only be set with data from the database or a developer app.

Parameters:
charisma - the charisma to set

getHit_die

public int getHit_die()
Represents the racial modifier to this stat.

Returns:
the hit_die

setHit_die

public void setHit_die(int hit_die)
Should only be set with data from the database or a developer app.

Parameters:
hit_die - the hit_die to set

getExperience

public int getExperience()
Represents the racial modifier to this stat.

Returns:
the experience

setExperience

public void setExperience(int experience)
Should only be set with data from the database or a developer app.

Parameters:
experience - the experience to set

getInfravision

public int getInfravision()
Represents the racial modifier to this stat.

Returns:
the infravision

setInfravision

public void setInfravision(int infravision)
Should only be set with data from the database or a developer app.

Parameters:
infravision - the infravision to set

getDescription

public java.lang.String getDescription()
Human readable description of this race.

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Should only be set with data from the database or a developer app.

Parameters:
description - the description to set




SourceForge.net Logo

Server provided by Gene Davis Software.