org.jangband.db
Class PlayerClass

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

public class PlayerClass
extends java.lang.Object

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

id

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


playerClass

private java.lang.String playerClass
Human readable name of this class.


strength

private int strength
Class modifier for this stat.


intelligence

private int intelligence
Class modifier for this stat.


wisdom

private int wisdom
Class modifier for this stat.


dexterity

private int dexterity
Class modifier for this stat.


constitution

private int constitution
Class modifier for this stat.


charisma

private int charisma
Class modifier for this stat.


hitDie

private int hitDie
Class modifier for this stat.


experience

private int experience
Class modifier for this stat.


spellCategoryCount

private int spellCategoryCount
Class number of magic realms this class gets.


description

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

Constructor Detail

PlayerClass

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


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

Parameters:
id -
playerClass -
strength -
intelligence -
wisdom -
dexterity -
constitution -
charisma -
hitDie -
experience -
spellCategoryCount -
description -
Method Detail

getId

public int getId()
Returns:
the id

setId

public void setId(int id)
Parameters:
id - the id to set

getPlayerClass

public java.lang.String getPlayerClass()
Returns:
the playerClass

setPlayerClass

public void setPlayerClass(java.lang.String playerClass)
Parameters:
playerClass - the playerClass to set

getStrength

public int getStrength()
Returns:
the strength

setStrength

public void setStrength(int strength)
Parameters:
strength - the strength to set

getIntelligence

public int getIntelligence()
Returns:
the intelligence

setIntelligence

public void setIntelligence(int intelligence)
Parameters:
intelligence - the intelligence to set

getWisdom

public int getWisdom()
Returns:
the wisdom

setWisdom

public void setWisdom(int wisdom)
Parameters:
wisdom - the wisdom to set

getDexterity

public int getDexterity()
Returns:
the dexterity

setDexterity

public void setDexterity(int dexterity)
Parameters:
dexterity - the dexterity to set

getConstitution

public int getConstitution()
Returns:
the constitution

setConstitution

public void setConstitution(int constitution)
Parameters:
constitution - the constitution to set

getCharisma

public int getCharisma()
Returns:
the charisma

setCharisma

public void setCharisma(int charisma)
Parameters:
charisma - the charisma to set

getHitDie

public int getHitDie()
Returns:
the hitDie

setHitDie

public void setHitDie(int hitDie)
Parameters:
hitDie - the hitDie to set

getExperience

public int getExperience()
Returns:
the experience

setExperience

public void setExperience(int experience)
Parameters:
experience - the experience to set

getSpellCategoryCount

public int getSpellCategoryCount()
Returns:
the spellCategoryCount

setSpellCategoryCount

public void setSpellCategoryCount(int spellCategoryCount)
Parameters:
spellCategoryCount - the spellCategoryCount to set

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set




SourceForge.net Logo

Server provided by Gene Davis Software.