mud.common.objects
Class Creature

java.lang.Object
  extended by mud.common.room.IdObject
      extended by mud.common.objects.GameObject
          extended by mud.common.objects.Creature
Direct Known Subclasses:
Monster, Player

public abstract class Creature
extends GameObject

Living object


Nested Class Summary
static class Creature.Direction
           
 
Constructor Summary
Creature(int id, ImageRect image, int hp)
           
 
Method Summary
 void destroy()
           
abstract  int getAttack()
           
abstract  int getDefense()
           
 int getHp()
           
 Inventory getInventory()
           
 void setHp(int h)
           
 
Methods inherited from class mud.common.objects.GameObject
contributeTileActions, dispose, executeTileAction, getActivity, getDirection, getImage, getName, getRoom, getTile, getX, getY, setActivity, setDirection, setPos, setRoom, toXml
 
Methods inherited from class mud.common.room.IdObject
getId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Creature

public Creature(int id,
                ImageRect image,
                int hp)
Method Detail

destroy

public void destroy()

getHp

public int getHp()

getInventory

public Inventory getInventory()

getAttack

public abstract int getAttack()

getDefense

public abstract int getDefense()

setHp

public void setHp(int h)