Source: healingpotion.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          healingpotion.h  -  description
                             -------------------
    begin                : Tue Feb 29 2000
    copyright            : (C) 2000 by Daniel Roberge
    email                : droberge@uvic.ca
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the Artistic License                            *
 *                                                                         *
 ***************************************************************************/

#ifndef HEALINGPOTION_H
#define HEALINGPOTION_H

#include "dpoints.h"
#include "potion.h"

/**Is a potion.
Restores HP when sipped.
Could also restore any other DepletablePoints.
  *@author Daniel Roberge
  */

class HealingPotion : public Potion  {
public: 
	HealingPotion(char *Aname,int charges, int restorationAmount);
	virtual ~HealingPotion();
private: // Private attributes
  /** The number of points restored to the DepletablePoints when the potion is drank for one charge. */
public: // Public methods
  /** Makes this potion set to restore toThis. */
  void hookUp(DepletablePoints *toThis);
  int pointsPerCharge;
public: // Public attributes
  /** The DepletablePoints which this HealingPotion restores. */
  DepletablePoints * restores;
public: // Public methods
  /** Returns that it is a restoration potion. */
  virtual int sip();
};

#endif

Generated by: droberge@magebook.localdomain on Mon Jul 3 13:20:08 200.