Source: treasure.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          treasure.h  -  description
                             -------------------
    begin                : Wed Feb 23 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 TREASURE_H
#define TREASURE_H

#include "invitem.h"
#include "moneyholder.h"

/**This is a generic piece of treasure.
  *@author Daniel Roberge
  */

class Treasure : public InventoryItem  {
public: 
	Treasure(char *name,int weight,int value);
	virtual ~Treasure();
  /** Sells this object, adding its worth to recipient. */
  virtual void sell(MoneyHolder recipient);
protected: // Protected attributes
  /** The value of this piece of treasure. */
  int worth;
};

#endif

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