Last change
on this file since 900 was
740,
checked in by sam, 10 years ago
|
monsterz: create a Score class to display the score text and increment it
progressively.
|
-
Property svn:keywords set to
Id
|
File size:
901 bytes
|
Rev | Line | |
---|
[340] | 1 | // |
---|
| 2 | // Monsterz |
---|
| 3 | // |
---|
| 4 | // Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
| 5 | // This program is free software; you can redistribute it and/or |
---|
| 6 | // modify it under the terms of the Do What The Fuck You Want To |
---|
| 7 | // Public License, Version 2, as published by Sam Hocevar. See |
---|
| 8 | // http://sam.zoy.org/projects/COPYING.WTFPL for more details. |
---|
| 9 | // |
---|
| 10 | |
---|
| 11 | // |
---|
| 12 | // The Thumbs class |
---|
[740] | 13 | // ---------------- |
---|
[340] | 14 | // |
---|
| 15 | |
---|
| 16 | #if !defined __MONSTERZ_THUMBS_H__ |
---|
| 17 | #define __MONSTERZ_THUMBS_H__ |
---|
| 18 | |
---|
| 19 | #include "monsterz.h" |
---|
| 20 | |
---|
| 21 | class ThumbsData; |
---|
| 22 | |
---|
| 23 | class Thumbs : public WorldEntity |
---|
| 24 | { |
---|
| 25 | public: |
---|
| 26 | Thumbs(int npieces); |
---|
| 27 | virtual ~Thumbs(); |
---|
| 28 | |
---|
[423] | 29 | char const *GetName() { return "<thumbs>"; } |
---|
| 30 | |
---|
[345] | 31 | void SetMax(int npieces); |
---|
[340] | 32 | void AddCount(int id, int count); |
---|
[348] | 33 | int GetCount(int id); |
---|
[340] | 34 | |
---|
| 35 | protected: |
---|
| 36 | virtual void TickGame(float deltams); |
---|
| 37 | virtual void TickDraw(float deltams); |
---|
| 38 | |
---|
| 39 | private: |
---|
| 40 | ThumbsData *data; |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | #endif // __MONSTERZ_THUMBS_H__ |
---|
| 44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.