Changeset 740 for trunk/monsterz/score.h
- Timestamp:
- Mar 14, 2011, 2:40:24 AM (10 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/monsterz/score.h
r739 r740 10 10 11 11 // 12 // The Thumbsclass12 // The Score class 13 13 // --------------- 14 14 // 15 15 16 #if !defined __MONSTERZ_ THUMBS_H__17 #define __MONSTERZ_ THUMBS_H__16 #if !defined __MONSTERZ_SCORE_H__ 17 #define __MONSTERZ_SCORE_H__ 18 18 19 19 #include "monsterz.h" 20 20 21 class ThumbsData;21 class ScoreData; 22 22 23 class Thumbs : public WorldEntity23 class Score : public Text 24 24 { 25 25 public: 26 Thumbs(int npieces);27 virtual ~ Thumbs();26 Score(int score); 27 virtual ~Score(); 28 28 29 char const *GetName() { return "< thumbs>"; }29 char const *GetName() { return "<score>"; } 30 30 31 void SetMax(int npieces); 32 void AddCount(int id, int count); 33 int GetCount(int id); 31 void Add(int points); 34 32 35 33 protected: … … 38 36 39 37 private: 40 ThumbsData *data;38 ScoreData *data; 41 39 }; 42 40 43 #endif // __MONSTERZ_ THUMBS_H__41 #endif // __MONSTERZ_SCORE_H__ 44 42
Note: See TracChangeset
for help on using the changeset viewer.