File: gamedata.h

package info (click to toggle)
pacman 10-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 664 kB
  • ctags: 1,108
  • sloc: cpp: 3,333; makefile: 502; sh: 96
file content (40 lines) | stat: -rw-r--r-- 1,069 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
#ifndef __gamedata_h_
#define __gamedata_h_
#include"object.h"

class Gamedata : public Object {

static Gamedata* _instance;
static long  int hiscore,score,bonus;
static int level,boardlevel,lives,eats;

/* static */ void setboardlevel();

 protected:
Gamedata();

 public:
static Gamedata* instance();
/* static */ void start(void);	//initializing of gamedata before game starts 
/* static */ void start2(void);	//initializing of gamedata after completed level
/* static */ void scorepluss(int);	//the rest if simple
/* static */ void bondwn();
/* static */ void levelup();
/* static */ void livesdwn();
/* static */ void livesup();
/* static */ void foodeat();
/* static */ long int getscore();
/* static */ long int gethiscore();
/* static */ long int getbonus(); 
/* static */ int getlevel();
/* static */ int getboardlevel();
/* static */ int getlives();
/* static */ int eatenall();
/* static */ void resetscore();
/* static */ void reseteats();
/* static */ void setbonus(long int); 
/* static */ void setlevel(int);
/* static */ void setlives(int);
};

#endif