ItemModifiers Class Reference

Set of item characteristics. More...

#include <item.hpp>

List of all members.

Public Member Functions

int getValue (int type) const
 Gets the value associated to a modifier type, or zero if none.
void setValue (int type, int amount)
 Sets the value associated to a modifier type.
int getAttributeValue (int attr) const
 Gets the value associated to a MOD_ATTRIBUTE class, or zero if none.
void setAttributeValue (int attr, int amount)
 Sets the value associated to a MOD_ATTRIBUTE class.
void applyAttributes (Being *) const
 Applies all the attribute modifiers to a given Being.
void cancelAttributes (Being *) const
 Cancels all the applied modifiers to a given Being.


Detailed Description

Set of item characteristics.

Definition at line 132 of file item.hpp.


Member Function Documentation

void ItemModifiers::cancelAttributes ( Being b  )  const

Cancels all the applied modifiers to a given Being.

Only meant for equipment.

Definition at line 129 of file item.cpp.

References Being::applyModifier().


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:46 2009 for TMW Server Collection by  doxygen 1.5.5