|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jurpe.characters.BasicPC jurpe.characters.PC
public abstract class PC
Base class for every Playing Character
Method Summary | |
---|---|
void |
addToCurrentHP(int points)
Add or remove points from current character ht. |
java.lang.Object |
clone()
Cloning function |
DefenseType |
getActiveDefense()
Get current character active defense |
DefenseType[] |
getActiveDefenses()
Get current character active defenses, first and next preferred |
DefenseType[] |
getActiveDefensesAvailable()
Get active defenses type available for this character |
abstract AllOutAttackType |
getAllOutAttackType()
All Aou Attack for this PC |
abstract int |
getBareHandsSkill()
Get current skill in unarmed combat. |
abstract int |
getCurrentShieldLevel()
Get current skill level for current shield. |
abstract Weapon |
getCurrentWeapon()
Get current weapon, if any. |
abstract int |
getCurrentWeaponLevel()
Get current skill level for current weapon. |
abstract int |
getDamageRoll()
Get Damage Roll |
java.lang.String |
getFormattedVel()
Get Character Speed |
java.lang.String |
getInfo(java.lang.String separator)
Get verbose info |
abstract int |
getMaxDamage()
Get Max Damage |
abstract int |
getMvmt()
Get current movement points |
java.lang.String |
getName()
Get Character's Name |
abstract float |
getTotalActiveDefenses()
Get Total Active Defenses: chosen defense between dodging, blocking and parrying |
abstract float |
getTotalPassiveDefenses()
Get Total Passive Defenses: armor+shield |
abstract boolean |
isAlive()
If character is alive it returns true |
boolean |
isArmed()
True, if this character is wearing a weapon |
abstract boolean |
isReady()
If character is ready to make an attack this turn. |
boolean |
isShielded()
Returns true if character wears a shield. |
boolean |
isUnconscious()
Returns true if character cannot move/decide actions (is unconscious) |
void |
receiveDamage(int points)
Subtracts points to current Health. |
void |
restoreHP()
Restore character Hit Points. |
int |
rollForLife()
This character executes a roll against its MaximumHT points. |
void |
setActiveDefense(DefenseType dt)
Set current character active defense |
void |
setActiveDefenseAvailability(boolean avail)
Set current character active defense availability. |
void |
setActiveDefenses(DefenseType[] dt)
Set current character active defense and next preferred active defense |
void |
setAlive(boolean alive)
Set if current character is alive or not. |
void |
setUnconscious(boolean uncon)
Set unconsciousness of current character |
java.lang.String |
toString()
Description of this PC |
Methods inherited from class jurpe.characters.BasicPC |
---|
compareTo, getCharacterAttributes, getCurrentHP, getDamageResistance, getHT, getPassiveDefense, getPrimaryStats, getShortDescription, isAI, setAI, setCharacterAttributes, setDamageResistance, setPassiveDefense |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
public void addToCurrentHP(int points)
points
- If positive adds to current HT, else remove from current HTpublic java.lang.Object clone()
clone
in class java.lang.Object
public DefenseType getActiveDefense()
DefenseType
public DefenseType[] getActiveDefenses()
DefenseType
public DefenseType[] getActiveDefensesAvailable()
DefenseType
public abstract AllOutAttackType getAllOutAttackType()
public abstract int getBareHandsSkill()
public abstract int getCurrentShieldLevel()
public abstract Weapon getCurrentWeapon()
public abstract int getCurrentWeaponLevel()
public abstract int getDamageRoll()
public java.lang.String getFormattedVel()
public java.lang.String getInfo(java.lang.String separator)
separator
- Character or string to separate (ie:\n)
public abstract int getMaxDamage()
public abstract int getMvmt()
public java.lang.String getName()
public abstract float getTotalActiveDefenses()
public abstract float getTotalPassiveDefenses()
public abstract boolean isAlive()
public boolean isArmed()
public abstract boolean isReady()
public boolean isShielded()
public boolean isUnconscious()
public void receiveDamage(int points)
points
- If positive adds to current HT, else remove from current HTpublic void restoreHP()
public int rollForLife()
int points = pc.rollForLife(); if (pc.isUnconscious()) // ....
public void setActiveDefense(DefenseType dt)
dt
- ie: dodging, parrying, blockingDefenseType
public void setActiveDefenseAvailability(boolean avail)
avail
- false, if active defenses will not be available next turnDefenseType
public void setActiveDefenses(DefenseType[] dt)
dt
- 2 dts out of dodging, parrying, blockingDefenseType
public void setAlive(boolean alive)
alive
- false if character is deadpublic void setUnconscious(boolean uncon)
uncon
- true if character has to be made unconsciouspublic java.lang.String toString()
toString
in class java.lang.Object
|
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 |