File: stats.h

package info (click to toggle)
kball 0.0.20041216-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 10,988 kB
  • sloc: cpp: 4,276; makefile: 66; sh: 64; ansic: 43
file content (40 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (7)
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
35
36
37
38
39
40
// -----------------------------------------------
// stats.h
// -----------------------------------------------
// Statistics of gameplay for KBall
// ----------------------------------------------- 
// By Kronoman 
// Copyright (c) 2004
// In loving memory of my father
// -----------------------------------------------

#ifndef KBALL_STATS_H
#define KBALL_STATS_H

#include <allegro.h>

class CGameStats
{
	public:
		CGameStats();
		~CGameStats();
		
		void reset(); // reset stats
		
		
		void print(BITMAP *bmp, int y, int color_fg, int color_bg, FONT *f); // print stats
		
		void add_time(int h, int m, int s); // use this to update time, will keep it ok
		
		// time stats (total time of gameplay)
		int h, s, m;
		
		// score
		long int score;
		
		// balls lost
		int blost;
};

#endif