aboutsummaryrefslogtreecommitdiff
path: root/color.c
blob: 94025ed19188fd2a3ce753e304153d7f69c45e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "7w.h"

int gettypecolor(int type) {
	switch (type) {
	case RESOURCE:
		return COLORRESOURCE;
	case INDUSTRY:
		return COLORINDUSTRY;
	case STRUCTURE:
		return COLORSTRUCTURE;
	case COMMERCIAL:
		return COLORCOMMERCIAL;
	case MILITARY:
		return COLORMILITARY;
	case SCIENTIFIC:
		return COLORSCIENTIFIC;
	case GUILD:
		return COLORGUILD;
	default:
		return 0;
	}
}
bgstack15