-
Notifications
You must be signed in to change notification settings - Fork 0
/
Score.h
34 lines (29 loc) · 787 Bytes
/
Score.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "SpriteSheet.h"
class ScoreC : public ObjectC
{
public:
ScoreC(int id, float width, float height, float startX, float startY, bool blue);
~ScoreC();
void reset();
void update(DWORD milliseconds);
virtual void render();
void disable() {mEnabled = false;};
void enable() {mEnabled = true;};
float getWidth() { return mWidth; };
float getHeight() { return mHeight; };
float getId() { return mId; };
float getScore() { return mScore; };
void incrementScore();
private:
int mId;
int mScore;
bool mEnabled;
float mWidth;
float mHeight;
SpriteSheetC mLabelSpriteSheet;
SpriteSheetC mColorSpriteSheet;
SpriteSheetC mNumberSpriteSheets[10];
float mTimeSinceLastShot;
const int millisecondsBetweenBullets = 500;
};