Source: magicweapon.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          magicweapon.h  -  description
                             -------------------
    begin                : Tue Feb 22 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 GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef MAGICWEAPON_H
#define MAGICWEAPON_H

#include "weapon.h"

/**Is a weapon which has some magic added.
  *@author Daniel Roberge
  */

class MagicWeapon : public Weapon  {
public:
  /**Creates a MagicWeapon with specs as in Weapon::Weapon(int,int,int,int,int,char*,int),
     except with magic weapon bonus magbonus*/
	MagicWeapon(int Speed,int DT,int dice,int sides,int bonus,char *AName,int Weight,int magbonus);
	virtual ~MagicWeapon();
  /** Returns a damage roll with magic added */
  virtual int returnDamage();
public:
  /** Returns whether or not the weapon is magic. */
  virtual bool isMagic();
  /** Returns the number of pluses on the weapon. */
  virtual int getPluses();
private: // Private attributes
  /** Returns the number of pluses this weapon gets to dice rolls */
  int pluses;
};
#endif

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