class Modifiable

This class implements the base functionality required for a class to accept modifiers. More...

Definition#include <lycad_chargen/modifiable.h>
Inherited byAttribute
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

This class implements the base functionality required for a class to accept modifiers.

 Modifiable ()

Modifiable

 ~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]

int magnitude

magnitude

[protected]