Source: strengthattrib.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          strengthattrib.h  -  description
                             -------------------
    begin                : Fri Mar 3 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 STRENGTHATTRIB_H
#define STRENGTHATTRIB_H

#include "rpoints.h"
#include "dice.h"

/**A wrapper for the Strength attribute which can return derived values.
  *@author Daniel Roberge
  */

class StrengthAttrib : public RenormalizablePoints  {
public:
	/** Creates a StrengthAttrib with the value equal to Str. */
	StrengthAttrib(int Str);
	/** Creates a StrengthAttrib with a value equal to 3d6. */
	StrengthAttrib();
	~StrengthAttrib();
  /** Returns the hit adjustment corresponding to the current Strength. */
  int getHitAdj();
  /** Returns the damage adjustment for this Strength */
  int getDamAdj();
  /** Returns the weight allowance for this Strength. */
  unsigned getWeight();
};

#endif

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