org.jadv.basic
Class Living

java.lang.Object
  |
  +--org.jadv.basic.SavedObject
        |
        +--org.jadv.basic.JAdvObject
              |
              +--org.jadv.basic.Living
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NPC, Player

public class Living
extends JAdvObject

A living implements the things, that are equal among all Livings.

Author:
neitzel
See Also:
Serialized Form

Field Summary
 int __HP_GEN_TMP
           
 int __SP_GEN_TMP
           
 int _BE
           
 int _dAT
           
 int _dPA
           
 int _HP
           
 int _HP_GEN
           
 int _HP_MAX
           
 int _RS
           
 int _SP
           
 int _SP_GEN
           
 int _SP_MAX
           
 WeaponStats[] _weaponStats
           
 
Fields inherited from class org.jadv.basic.JAdvObject
_children, _description, _HeartBeatTime, _Size
 
Fields inherited from class org.jadv.basic.SavedObject
ObjMan
 
Constructor Summary
Living()
          Constructor of a Living
 
Method Summary
 void die()
          The Living should die now!
 int getAT(int weapon)
          Get the AT value for a weapon
 int getPA(int weapon)
          Get the PA value for a weapon
 void HeartBeat()
          HeartBeat, that is used to increase the HP / SP Points!
 void incLevel()
          incLevel Increases the Level.
 void init(java.util.HashMap attribs)
          initialize the object
 void modifyHP(int dHP)
          Modify the HP value
 void modifySP(int dSP)
          Modify the SP value
 void save()
          save the object
 
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

_HP

public int _HP

_HP_MAX

public int _HP_MAX

_HP_GEN

public int _HP_GEN

_SP

public int _SP

_SP_MAX

public int _SP_MAX

_SP_GEN

public int _SP_GEN

__HP_GEN_TMP

public int __HP_GEN_TMP

__SP_GEN_TMP

public int __SP_GEN_TMP

_RS

public int _RS

_BE

public int _BE

_dAT

public int _dAT

_dPA

public int _dPA

_weaponStats

public WeaponStats[] _weaponStats
Constructor Detail

Living

public Living()
Constructor of a Living

Method Detail

die

public void die()
The Living should die now!


getAT

public int getAT(int weapon)
Get the AT value for a weapon

Parameters:
weapon - Which weapon do you want?
Returns:
int AT value

getPA

public int getPA(int weapon)
Get the PA value for a weapon

Parameters:
weapon - Which weapon do you want?
Returns:
int PA value

HeartBeat

public void HeartBeat()
HeartBeat, that is used to increase the HP / SP Points!

Overrides:
HeartBeat in class JAdvObject
See Also:
JAdvObject.HeartBeat()

incLevel

public void incLevel()
incLevel Increases the Level. (Also changes some attributes)


init

public void init(java.util.HashMap attribs)
initialize the object

Overrides:
init in class JAdvObject
Parameters:
attribs - - the attributes of the object

modifyHP

public void modifyHP(int dHP)
Modify the HP value

Parameters:
dHP - - value to change the HP!

modifySP

public void modifySP(int dSP)
Modify the SP value

Parameters:
dSP - - value to change the HP!

save

public void save()
save the object

Overrides:
save in class JAdvObject