class RenormalizablePoints

A points structure in which there is a current value and a normal value More...

Definition#include <rpoints.h>
Inherited byConstitutionAttrib, DexterityAttrib, StrengthAttrib
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members

Protected Members


Detailed Description

A points structure in which there is a current value and a normal value

RenormalizablePoints ()

Creates a new RenormalizablePoints with current and normal 0

RenormalizablePoints (int value)

Creates a new RenormalizablePoints with current and normal values value

void setNormal (int val)

Sets the normal value of the RenormalizablePoints to val

int getCurrent ()
[const]

Returns the current value

void setCurrent (int val)

Sets the current value to val.

void renormalize ()

Returns the current value to the normal value.

RenormalizablePoints operator++ ()

Increments the current value.

RenormalizablePoints operator-- ()

Decrements the current value.

int operator+ (int operand)
[const]

Sums the current value and the operand.

int operator- (int operand)
[const]

Takes the difference of the current value and the operand.

RenormalizablePoints operator= (int newVal)

Assigns a new current value to the RPoints

void makeNormal ()

Changes the normal value to match the current value.

int getNormal ()

Returns the normal value of the RPoints

int current
[protected]

The value this variable has currently

int normal
[protected]

The value this object renormalize()s to.

inline RenormalizablePoints operator++ ()
[protected]

Increments the normal value and renormalizes