-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype.h
53 lines (43 loc) · 1.67 KB
/
type.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
52
53
/*
#############################################################################################
# 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 functions that manage types and type.typ file
*
* (header file)
*/
#ifndef typeh
#define typeh
#include "generic.h"
#include "color.h"
// The structure that represent a type of a object
class type {
public:
std::string name;
std::string description;
type *parent;
type *product;
double mass_min; // Mass range
double mass_max;
color color_max; // Color range
color color_min;
bool hunted; // if is hunted
bool hunter; // if hunts
bool merge; // can the object be merged with another (anaelastic impact)? Is a suggestion
};
#endif