Source: DepletablePoints.h
|
|
|
|
u/***************************************************************************
DepletablePoints.h - description
-------------------
begin : Sat Jan 22 2000
copyright : (C) 2000 by Daniel Roberge
email : droberge@uvic.ca
***************************************************************************/
#ifndef _DPOINTS_H
#define _DPOINTS_H
class DepletablePoints
{
private:
int current, maximum;
void MakeValid(void);
public:
DepletablePoints(void);
DepletablePoints(int);
DepletablePoints(int curr,int max);
int Change(int);
int GetCurrent(void) { return current; };
int GetMax(void) { return maximum; };
int SetCurrent(int);
int SetMax(int);
int ChangeMax(int);
bool IsPositive(void) { return (current > 0); };
};
#endif
Generated by: droberge@magebook.localdomain on Mon Jul 3 13:20:08 200. |