home *** CD-ROM | disk | FTP | other *** search
- #ifndef __score_h
- #define __score_h
-
- #include "object.h"
-
- class ScoreBoard : public Object
- {
- // data
- private:
- protected:
- int x, y;
- long score;
- public:
- // functions
- private:
- protected:
- public:
- ScoreBoard() { x=y=0, score=0; }
- void Setup( int X, int Y, long InitialScore=0 ) { x=X, y=Y, score=InitialScore; }
- void Reset( long InitialScore=0 ) { score=InitialScore; }
- long GetScore(void) { return score; }
- void add( int points, boolean UpdateScreen=NO );
- virtual void OnDraw(void) {};
- void draw(void);
- void initialize();
- };
-
- #endif __score_h