be.saltwater.jaqel.creature
Class Potion
java.lang.Object
be.saltwater.jaqel.creature.Potion
- Direct Known Subclasses:
- HealthPotion, MagicPotion
- public abstract class Potion
- extends java.lang.Object
Can be bought in the shop. Contains points that can be added to the appropriate creature's points in it's CreatureSharedData object.
- Author:
- Robin Wittevrongel
|
Constructor Summary |
Potion(int points)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Potion
public Potion(int points)
- Parameters:
points - The number of potion points this Potion values.
setPotionTypeData
public void setPotionTypeData(PotionTypeData typedata)
getPoints
public int getPoints()
- Returns the value of this Potion.
drink
public abstract void drink(Creature c)
getNode
public javax.media.j3d.Node getNode()
setLocation
public void setLocation(java.awt.Point p)
getLocation
public java.awt.Point getLocation()
getType
public abstract java.lang.String getType()