be.saltwater.jaqel.creature
Class Potion

java.lang.Object
  extended bybe.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)
           
 
Method Summary
abstract  void drink(Creature c)
           
 java.awt.Point getLocation()
           
 javax.media.j3d.Node getNode()
           
 int getPoints()
          Returns the value of this Potion.
abstract  java.lang.String getType()
           
 void setLocation(java.awt.Point p)
           
 void setPotionTypeData(PotionTypeData typedata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Potion

public Potion(int points)
Parameters:
points - The number of potion points this Potion values.
Method Detail

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()