|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.CoreHandles
jurpe.system.CoreCommands
public abstract class CoreCommands
Core related commands
| Constructor Summary | |
|---|---|
CoreCommands()
|
|
| Method Summary | |
|---|---|
boolean |
addSkill(Skill skillToAdd)
Add Skill to Playing Character. |
void |
cancelCharacter()
Reset current Playing Character. |
boolean |
continueCombat()
After having initialized Combat and TurnTable objects, this method return false until combat is ended. |
void |
enterCombatWith(java.lang.String monsterName)
Starts a combat session. |
void |
enterHighScore()
Saves high score |
boolean |
executeCommand(CommandSequence cs)
Executes combat command(s). |
int |
firstAid(PCharacter pc,
int sk,
int tl)
Get First Aid regained health points. |
BasicItem |
generateItem(ItemValueType ivt)
Generate a random item |
Monster |
generateMonster(int value)
Creates a random monster, with a random name. |
void |
generatePC(CharacterAttributes crpc)
Creates a new Playing Character |
float |
getImprovingSkillCost(java.lang.String skillName)
Get how much points an improvement of one level for a Skill costs |
float |
getSkillCost(java.lang.String skillName,
int level)
Get how much points a Skill costs it's valued, or the initial points needed to learn a skill |
void |
loadHighScores()
Loads High Score Table. |
boolean |
loadPC(java.lang.String pcName)
Restore serialized PCharacter. |
void |
playerDies()
Procedure of current character death. |
void |
saveHighScores()
Serialize High Scores |
boolean |
savePC()
Serialize Playing Character and his references (Inventory, Skills and such) |
boolean |
savePC(java.lang.String namepath)
Serialize Playing Character and his references (Inventory, Skills and such) Extension is taken from Config file. |
| Methods inherited from class jurpe.system.CoreHandles |
|---|
getCombat, getDungeon, getHighScores, getInn, getLog, getPC, getShop, getSkills, getTurnTable, isPCgenerated, operatingSystem |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoreCommands()
| Method Detail |
|---|
public boolean executeCommand(CommandSequence cs)
cs - CommandString to execute
CommandSequence
public float getSkillCost(java.lang.String skillName,
int level)
skillName - Skill namelevel - Skill level
Skillpublic float getImprovingSkillCost(java.lang.String skillName)
skillName - name of Skill
Skillpublic boolean addSkill(Skill skillToAdd)
skillToAdd - Skill to Add to Playing Character
public int firstAid(PCharacter pc,
int sk,
int tl)
pc - PCharacter to be aidedsk - PCharacter Skill Level in First Aidtl - Tech Level of the Game World
public BasicItem generateItem(ItemValueType ivt)
throws JurpeException
ivt - Rarity of item to generate
JurpeExceptionpublic void generatePC(CharacterAttributes crpc)
crpc - Main character attributes for the character to create.public Monster generateMonster(int value)
value - total starting points assigned to the new character
public boolean savePC()
public boolean savePC(java.lang.String namepath)
namepath - complete path where you want to save your character, without
extension.
public boolean loadPC(java.lang.String pcName)
throws JurpeException
pcName - complete path to file with extension.
JurpeExceptionpublic void loadHighScores()
public void saveHighScores()
public void enterHighScore()
public void enterCombatWith(java.lang.String monsterName)
throws JurpeException
monsterName - Name of the monster to fight
JurpeException
public boolean continueCombat()
throws JurpeException
JurpeExceptionpublic void cancelCharacter()
public void playerDies()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||