class Modifiable
|
This class implements the base functionality
required for a class to accept modifiers. More... |
|
|
Public Methods
Protected Methods
Protected Members
This class implements the base functionality
required for a class to accept modifiers.
~Modifiable ()
| ~Modifiable |
[virtual]
int numModifiers ()
| numModifiers |
void removeModifier (Modifier *source)
| removeModifier |
[virtual]
void addModifier (Modifier *source)
| addModifier |
[virtual]
int getModifiedMagnitude ()
| getModifiedMagnitude |
[virtual]
int getMagnitude ()
| getMagnitude |
[const virtual]
int getModifiedMagnitude (Modifier& modified)
| getModifiedMagnitude |
[virtual]
Returns the magnitude with all of it's in scope modifiers added, plus
a modifier passed in the variable modified. This one time modifier will
not be added to the modifiable object.
int getModifiedMagnitude (int modified)
| getModifiedMagnitude |
[virtual]
int setMagnitude ()
| setMagnitude |
[virtual]
int setMagnitude ( const int newMagnitude)
| setMagnitude |
[virtual]
Set the magnitude to newMagnitude. This should be overridden in
inherited classes to check that newMagnitude is valid.
int sumOfAllModifiers ()
| sumOfAllModifiers |
[protected virtual]
Vector modifiers
| modifiers |
[protected]
[protected]
- Author: Sheldon Lee Wen
- Generated: sheldonl on cr595811-a on Fri Nov 30 10:24:34 2001, using kdoc 2.0a53.