|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.commands.GenericCommands
jurpe.system.commands.SkillCommands
public class SkillCommands
Skills related commands.
CoreCommands| Constructor Summary | |
|---|---|
SkillCommands()
|
|
| Method Summary | |
|---|---|
static boolean |
addSkill(PCharacter curPC,
Skill skillToAdd,
boolean autoImprove)
Add Skill to Playing Character. |
static int |
firstAid(PCharacter pc,
int sk,
int tl)
Get First Aid regained health points. |
static float |
getImprovingSkillCost(PCharacter pc,
int currentLevel,
Skill skill)
Get how much points an improvement of one level for a determinate Skill costs |
static float |
getSkillCost(Skill skill,
PCharacter pc,
int level)
Get how much points a Skill costs it's valued, or the initial points needed to learn a skill |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkillCommands()
| Method Detail |
|---|
public static 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 static boolean addSkill(PCharacter curPC,
Skill skillToAdd,
boolean autoImprove)
curPC - Playing CharacterskillToAdd - Skill to Add to Playing CharacterautoImprove - if it's true, Playing Character will improve skill until doing
so it's free
public static float getSkillCost(Skill skill,
PCharacter pc,
int level)
skill - Skill to get cost forlevel - Skill levelpc - Playing Character who wants to learn skill
Skill
public static float getImprovingSkillCost(PCharacter pc,
int currentLevel,
Skill skill)
pc - Playing Character who wants to improve skill levelcurrentLevel - Skill level before improvementskill - Skill to upgrade
Skill
|
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 | |||||||||