Source: lycad_chargen/Attribute.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          Attribute.h  -  description
                             -------------------
    begin                : Fri May 12 2000
    copyright            : (C) 2000 by Sheldon Lee Wen
    email                : tormak@home.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
//**** Attribute Header

#ifndef ATTRIBUTE_H
#define ATTRIBUTE_H
#include "staticdata.h"
#include "modifiable.h"
#include "Vector.h"
#include "dataloader.h"
#include 
#include 

/**This class represents an Attribute. It sets the value and
  sets up the extended attribute data. It inherits Modifiable
  *@author Sheldon Lee Wen
  */


class Attribute : public Modifiable
{

public:

  	Attribute();
 	Attribute(int iAttribute, int iMagnitude);
  	~Attribute();

  	/** returns the string name of the attribute */
  	string getName() const { return attributeName; }
  	/**  sets the magnitude to newMagnitude, limited by the maximum value
  		 that an attribute can have ATTRIBUTE_MAXIMUM */
  	virtual int setMagnitude(const int newMagnitude);
  	/** sums all of the existing modifiers and assigns the value to magnitude */
  	virtual int setMagnitude();

private:
  	dLoader* table;
  	string parseAttribute(const int iAttribute);
  	string attributeName;
  	int attribute;
   int extData[4];

};

#endif

Generated by: sheldonl on cr595811-a on Fri Nov 30 10:24:34 2001, using kdoc 2.0a53.