|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jadv.basic.SavedObject | +--org.jadv.basic.JAdvObject | +--org.jadv.basic.Living | +--org.jadv.basic.Player
All Player are an instance of this class
Field Summary | |
int |
_CH
|
int |
_EXP
|
int |
_FF
|
int |
_GE
|
int |
_IN
|
int |
_KK
|
int |
_KL
|
int |
_Level
|
int |
_MU
|
java.lang.String |
_StartRoomID
|
Fields inherited from class org.jadv.basic.Living |
__HP_GEN_TMP, __SP_GEN_TMP, _BE, _dAT, _dPA, _HP, _HP_GEN, _HP_MAX, _RS, _SP, _SP_GEN, _SP_MAX, _weaponStats |
Fields inherited from class org.jadv.basic.JAdvObject |
_children, _description, _HeartBeatTime, _Size |
Fields inherited from class org.jadv.basic.SavedObject |
ObjMan |
Constructor Summary | |
Player()
|
Method Summary | |
void |
addExperience(int exp)
Add the experience points and calcuates, if we reach a new Level (Level were reached at 1000, 2000, 4000, 8000, 16000, 32000, ....) |
void |
die()
The player dies ... |
int |
getBasicAT()
Get the basic attack value Calculated: (MU + GE + KK ) / 5 |
int |
getBasicPA()
Get the basic parade value Calculated: (IN + GE + KK) / 5 |
int |
getDistBasicAT()
Get the distance basic attack value Calculated: (IN + FF + KK) / 4 |
java.lang.String |
getStartRoom()
Returns the startroom of the player |
void |
goodAT(int weapon)
The player has done a really good attack! |
void |
goodPA(int weapon)
The player has done a really good parade! |
void |
incLevel()
incLevel Increases the Level. |
void |
init(java.util.HashMap attribs)
initialize the Object |
void |
save()
saves the local variables to their attributes |
Methods inherited from class org.jadv.basic.Living |
getAT, getPA, HeartBeat, modifyHP, modifySP |
Methods inherited from class org.jadv.basic.JAdvObject |
addChild, canMoveIn, canMoveOut, create, destroyObject, disableHeartBeat, enableHeartBeat, getDescription, getMasterParentID, getOldParentID, getParentID, getSight, getSize, removeChild, reset, sendPlayerEvent, setDescription, setMasterParentID_DEEP, setMasterParentID, setOldParentID, setParentID, setSize, setTimer, timer |
Methods inherited from class org.jadv.basic.SavedObject |
addEvent, canBeSwapped, createAttributes, createObject, createObject, createUUID, findObject, getAttribute, getAttributes, getAutoStart, getDeveloper, getId, getIntAttribute, getIntAttribute, getName, getNext, getPrev, hexFormat, isChanged, isValid, loadObject, markChanged, markNotChanged, mergeAttributes, removeFromList, replaceObject, replaceObject, saveObject, setAttribute, setId, setIntAttribute, setName, storeAfter, swapOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int _MU
public int _KL
public int _IN
public int _CH
public int _FF
public int _GE
public int _KK
public java.lang.String _StartRoomID
public int _EXP
public int _Level
Constructor Detail |
public Player()
Method Detail |
public void addExperience(int exp)
exp
- - Experience to add to the player!public void die()
die
in class Living
Living.die()
public int getBasicAT()
public int getBasicPA()
public int getDistBasicAT()
public java.lang.String getStartRoom()
public void goodAT(int weapon)
weapon
- - Which weapon was used for the attack?public void goodPA(int weapon)
weapon
- - Which weapon was used for the parade?public void incLevel()
incLevel
in class Living
public void init(java.util.HashMap attribs)
init
in class Living
attribs
- Attributes of the Objectpublic void save()
save
in class Living
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |