-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor.h
51 lines (43 loc) · 1.64 KB
/
color.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
#############################################################################
# Tux in Space - space exploration game #
# Copyright (C) 2016-2017 [email protected] #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, version 3 or compatibles. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc. #
#############################################################################
*
* In this file there are things correlated whit colors (very few)
*
* HEADER FILE
*/
#ifndef colorh
#define colorh
#include "generic.h"
#include "in.h"
class setting;
class color {
public:
unsigned int red;
unsigned int green;
unsigned int blue;
void Scan(const setting&, const color&, const color&); // An interface to create a color using OPS
bool CheckRange(const color&, const color&); // Check if the color is in a range of colours given (a color max and a color min)
bool operator== (const color& c) const;
bool operator!= (const color& c) const;
color(){
red = green = blue = 0;
}
};
#include "OnlyPrintfSystem.h"
#endif