File: colour.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 (63 lines) | stat: -rw-r--r-- 1,860 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef __colour_h_
#define __colour_h_

#include"systspec.h"
#include"usrinter.h"
#include"object.h"

//defines the type of the colour types
#ifdef XWIN
#define COLOURTYPE unsigned long
#define COLOURNAME XColor
#elif defined MSWIN
#define COLOURTYPE COLORREF
#define COLOURNAME COLORREF
#elif defined VTX
#define COLOURTYPE int
#define COLOURNAME int
#endif

class Colour : public Object {

#ifdef XWIN			//X-Win only
Display* display;		//pointer to display connection
Colormap cmap;			//a colourmap
#endif

 public:
Colour(UserInterface*);		//constructor and initializer
~Colour();			//destructor
                           
static COLOURTYPE MYFOREGROUND; //foreground colour
static COLOURTYPE MYBACKGROUND; //background colour
static COLOURTYPE WALLCOLOUR;   //colour for wall
static COLOURTYPE PACMANCOLOUR; //colour for pacman
static COLOURTYPE GHOSTCOLOUR1; //colour for ghost 1
static COLOURTYPE GHOSTCOLOUR2; //colour for ghost 2
static COLOURTYPE GHOSTCOLOUR3; //colour for ghost 3
static COLOURTYPE GHOSTCOLOUR4; //colour for ghost 4
static COLOURTYPE RUNGHOSTCOLOUR; //colour for running ghosts
static COLOURTYPE FOODCOLOUR;   //colour of the food
static COLOURTYPE SUPERFOODCOLOUR; //colour of the superfood
static COLOURTYPE BONUSPOINTCOLOUR;//colour of the bonuspoint bonus
static COLOURTYPE BONUSLIFECOLOUR; //colour of the bonuslife bonus
                           
/*
#define MYFOREGROUND cyan.pixel
#define MYBACKGROUND black.pixel
#define WALLCOLOUR deepskyblue.pixel
#define PACMANCOLOUR yellow.pixel
#define GHOSTCOLOUR1 red.pixel
#define GHOSTCOLOUR2 violetred.pixel
#define GHOSTCOLOUR3 violet.pixel
#define GHOSTCOLOUR4 orangered.pixel
#define RUNGHOSTCOLOUR lightblue.pixel
#define FOODCOLOUR lightyellow.pixel
#define SUPERFOODCOLOUR gold.pixel
#define BONUSPOINTCOLOUR gold.pixel
#define BONUSLIFECOLOUR gold.pixel
*/

};

#endif