public class ProfessionTraining extends Training
Constructor and Description |
---|
ProfessionTraining(ProfessionType type,
ProfessionLevel level,
java.util.List<Requirement> trainingReq)
Profession training constructor
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
getSave(org.w3c.dom.Document doc)
Parses object to XML document element
|
boolean |
teach(Character trainingCharacter)
Teaches specified character
|
public ProfessionTraining(ProfessionType type, ProfessionLevel level, java.util.List<Requirement> trainingReq)
type
- Type of profession to trainlevel
- Level of profession to traintrainingReq
- List of requirements for this trainingpublic boolean teach(Character trainingCharacter) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
Training
public org.w3c.dom.Element getSave(org.w3c.dom.Document doc)
SaveElement
doc
- XML document for save game