|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.characters.BasicPC
jurpe.characters.PC
jurpe.characters.Monster
public class Monster
Type class for monster (Monster). Monster is a PC (Playing Character)
Field Summary | |
---|---|
static int |
MONSTERFIELDS
It serves for datagrids to display monster fields, such as ST, DX, MVMT and others. |
Constructor Summary | |
---|---|
Monster(CharacterAttributes ca,
int armr)
Creates new monster. |
Method Summary | |
---|---|
static Monster |
createRandom(java.lang.String nm,
int points)
Creates a Non Playing Character (monster), with given points points. |
AllOutAttackType |
getAllOutAttackType()
Get AllOutAttack Type. |
int |
getArmor()
Get Monster armor |
int |
getBareHandsSkill()
Get current skill in unarmed combat. |
int |
getCurrentHP()
Get character current hit points |
Shield |
getCurrentShield()
Monster shield. |
int |
getCurrentShieldLevel()
Monster shield level. |
Weapon |
getCurrentWeapon()
Monster weapon. |
int |
getCurrentWeaponLevel()
Monster weapon SKILL level. |
Shield |
getCurShield()
Monster current shield |
int |
getCurShieldLevel()
Monster current shield level |
Weapon |
getCurWeapon()
Monster current weapon |
int |
getCurWeaponLevel()
Monster current weapon level |
int |
getDamageRoll()
A Monster bite depends on its ST. |
java.lang.String |
getHTHP()
If a character is a beast, he will have HT in the form HT/current HP |
java.lang.String |
getInfo(java.lang.String separator)
Get verbose info |
int |
getMaxDamage()
Get Max Damage |
int |
getMvmt()
Get Monster MVMT |
int |
getMvmtBonus()
Monster movement bonus |
java.lang.String |
getShortDescription()
Get monster short description following this pattern: Name: ST,DX,IQ,HT/HTmax |
java.lang.String |
getStats(java.lang.String separator)
Get info about monster statistics |
float |
getTotalActiveDefenses()
Taken from GURPSLite: Dodge is the only active defense for a beast without a shield. |
float |
getTotalPassiveDefenses()
Monster total passive defenses. |
boolean |
isAlive()
A monster is alive if: Has HT>0 |
boolean |
isReady()
If character is ready to make an attack this turn. |
void |
restoreHT()
Restore current hit points. |
void |
setArmor(int i)
Set monster armor level |
void |
setCurShield(Shield shield)
Set monster current shield |
void |
setCurShieldLevel(int i)
Set monster current shield skill level |
void |
setCurWeapon(Weapon weapon)
Set monster current weapon |
void |
setCurWeaponLevel(int i)
Set monster weapon skill level |
void |
setMonsterShield(Shield shield,
int level)
Set monster's shield and level |
void |
setMonsterWeapon(Weapon weapon,
int level)
Set monster's weapon and level. |
void |
setMvmtBonus(int i)
Set monster movement bonus |
java.lang.String |
toString()
Description of this Monster |
java.lang.String[] |
toStrings()
Get properties of monster as an array of Strings |
Methods inherited from class jurpe.characters.PC |
---|
addToCurrentHP, clone, getActiveDefense, getActiveDefenses, getActiveDefensesAvailable, getFormattedVel, getName, isArmed, isShielded, isUnconscious, receiveDamage, restoreHP, rollForLife, setActiveDefense, setActiveDefenseAvailability, setActiveDefenses, setAlive, setUnconscious |
Methods inherited from class jurpe.characters.BasicPC |
---|
compareTo, getCharacterAttributes, getDamageResistance, getHT, getPassiveDefense, getPrimaryStats, 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 |
Field Detail |
---|
public static final int MONSTERFIELDS
Constructor Detail |
---|
public Monster(CharacterAttributes ca, int armr)
ca
- Monster Attributesarmr
- Monster Natural armor PointsMethod Detail |
---|
public void restoreHT()
public int getArmor()
public int getCurrentHP()
BasicPC
getCurrentHP
in class BasicPC
public int getMvmt()
getMvmt
in class PC
public java.lang.String[] toStrings()
public boolean isReady()
PC
isReady
in class PC
public boolean isAlive()
isAlive
in class PC
public void setMonsterShield(Shield shield, int level)
shield
- Shield owned by monsterlevel
- Level of skill in using that weaponpublic Shield getCurrentShield()
public int getCurrentShieldLevel()
getCurrentShieldLevel
in class PC
public void setMonsterWeapon(Weapon weapon, int level)
weapon
- Weapon owned by monsterlevel
- Monster weapon skill levelpublic Weapon getCurrentWeapon()
getCurrentWeapon
in class PC
Weapon
public int getCurrentWeaponLevel()
getCurrentWeaponLevel
in class PC
public float getTotalPassiveDefenses()
getTotalPassiveDefenses
in class PC
public float getTotalActiveDefenses()
getTotalActiveDefenses
in class PC
public java.lang.String getShortDescription()
getShortDescription
in class BasicPC
public int getDamageRoll()
getDamageRoll
in class PC
public int getMaxDamage()
PC
getMaxDamage
in class PC
public static Monster createRandom(java.lang.String nm, int points)
nm
- PCharacter's namepoints
- Monster overall value
Monster
,
JurpeUtils
public int getBareHandsSkill()
getBareHandsSkill
in class PC
public AllOutAttackType getAllOutAttackType()
getAllOutAttackType
in class PC
public java.lang.String getHTHP()
public java.lang.String getInfo(java.lang.String separator)
getInfo
in class PC
separator
- Character or string to separate (ie:\n)
public java.lang.String getStats(java.lang.String separator)
separator
- Field separator
public Shield getCurShield()
public int getCurShieldLevel()
public Weapon getCurWeapon()
public int getCurWeaponLevel()
public int getMvmtBonus()
public void setMvmtBonus(int i)
i
- Monster movement bonuspublic void setArmor(int i)
i
- Monster armor levepublic void setCurShield(Shield shield)
shield
- Shield to wearpublic void setCurShieldLevel(int i)
i
- Current shield skill levelpublic void setCurWeapon(Weapon weapon)
weapon
- Weapon to wearpublic void setCurWeaponLevel(int i)
i
- Weapon skill levelpublic java.lang.String toString()
toString
in class PC
|
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 |