File: ttype.def

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (171 lines) | stat: -rw-r--r-- 5,021 bytes parent folder | download | duplicates (2)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/* Definitions of the terrain type properties in Xconq GDL.
   Copyright (C) 1991-1997 Stanley T. Shebs.

Xconq 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; either version 2, or (at your option)
any later version.  See the file COPYING.  */

DEF_TPROP_I("alt-percentile-max", t_alt_max,
	"highest altitude percentile for this type",
	altmax, 0, 0, 100)

DEF_TPROP_I("alt-percentile-min", t_alt_min,
	"lowest altitude percentile for this type",
	altmin, 0, 0, 100)

DEF_TPROP_I("available", t_available,
	"true if type may be used",
	available, 0, 1, 1)

DEF_TPROP_I("capacity", t_capacity,
	"useful area of a cell of this terrain type, relative to units",
	capacity, 0, 1, PROPHI)

DEF_TPROP_S("char", t_char,
	"single character representing this type of terrain",	
	tchar, "")

DEF_TPROP_I("clouds-max", t_clouds_max,
	"highest density of clouds in this terrain",
	cloudsmax, 0, 0, 100)

DEF_TPROP_I("clouds-min", t_clouds_min,
	"lowest density of clouds in this terrain",
	cloudsmin, 0, 0, 100)

DEF_TPROP_I("country-growth-chance", t_country_growth,
	"chance that a country will be grown into terrain",
	countrygrowth, 0, 100, 100)

DEF_TPROP_I("country-people-chance", t_country_people,
	"chance that terrain has people belonging to the country",
	countrypeople, 0, 0, 100)

DEF_TPROP_I("country-takeover-chance", t_country_takeover,
	"chance that country will be grown into terrain already given to another side",
	countrytakeover, 0, 0, 100)

DEF_TPROP_I("country-terrain-max", t_country_max,
	"maximum amount of this type in each country's initial radius",
	countrymax, -1, -1, PROPHI)

DEF_TPROP_I("country-terrain-min", t_country_min,
	"minimum amount of this type in each country's initial radius",
	countryminterrain, 0, 0, PROPHI)

DEF_TPROP_I("elevation-max", t_elev_max,
	"highest possible elevation",
	elevmax, PROPLO, 0, PROPHI)

DEF_TPROP_I("elevation-min", t_elev_min,
	"lowest possible elevation",
	elevmin, PROPLO, 0, PROPHI)

DEF_TPROP_L("extensions", t_extensions,
	"extension properties",
	extensions)

DEF_TPROP_S("help", t_help,
	"brief description of this terrain",
	help, "")

DEF_TPROP_S("image-name", t_image_name,
	"graphical representation of this terrain",
	imagename, "")

DEF_TPROP_I("independent-people-chance", t_indep_people,
	"chance that terrain has people belonging to the country",
	indeppeople, 0, 0, 100)

DEF_TPROP_I("liquid", t_liquid,
	"true if this type is a liquid",
	liquid, 0, 0, 1)

DEF_TPROP_I("maze-passage-occurrence", t_maze_passage_occurrence,
	"frequency of this type in maze passageways",
	mazepassageoccurrence, 0, 0, PROPHI)

DEF_TPROP_I("maze-room-occurrence", t_maze_room_occurrence,
	"frequency of this type in maze rooms",
	mazeroomoccurrence, 0, 0, PROPHI)

DEF_TPROP_S("name", t_type_name,
	"name of this type of terrain",
	name, "")

DEF_TPROP_L("notes", t_notes,
	"player notes",
	notes)

DEF_TPROP_I("occurrence", t_occurrence,
	"frequency of this type in random worlds",
	occurrence, 0, 1, PROPHI)

DEF_TPROP_I("people-max", t_people_max,
	"max number of people of all types added together",
	peoplemax, -1, -1, PROPHI)

DEF_TPROP_I("river-chance", t_river_chance,
	"chance of river starting in this terrain",
	riverchance, 0, 0, 10000)

DEF_TPROP_I("subtype", t_subtype,
	"subtype of the terrain",
	subtype, cellsubtype, cellsubtype, coatingsubtype)

DEF_TPROP_I("subtype-x", t_subtype_x,
	"extra subtype used for synthesis",
	subtypex, 0, 0, PROPHI)

DEF_TPROP_I("temperature-average", t_temp_avg,
	"average temperature in this terrain",
	tempavg, PROPLO, 0, PROPHI)

DEF_TPROP_I("temperature-max", t_temp_max,
	"highest possible temperature",
	tempmax, PROPLO, 0, PROPHI)

DEF_TPROP_I("temperature-min", t_temp_min,
	"lowest possible temperature",
	tempmin, PROPLO, 0, PROPHI)

DEF_TPROP_I("temperature-variability", t_temp_variability,
	"amount by which temperature will vary randomly",
	tempvariability, 0, 0, PROPHI)

DEF_TPROP_I("thickness", t_thickness,
	"Elevation of `top' of terrain over nominal elevation",
	thickness, 0, 0, PROPHI)

DEF_TPROP_I("wet-percentile-max", t_wet_max,
	"highest moisture percentile",
	maxwet, 0, 0, 100)

DEF_TPROP_I("wet-percentile-min", t_wet_min,
	"lowest moisture percentile",
	wetmin, 0, 0, 100)

DEF_TPROP_I("wind-force-average", t_wind_force_avg,
	"average wind force",
	gwindavg, 0, 0, PROPHI)

DEF_TPROP_I("wind-force-max", t_wind_force_max,
	"highest possible wind force",
	gwindmax, 0, 0, PROPHI)

DEF_TPROP_I("wind-force-min", t_wind_force_min,
	"lowest possible wind force",
	gwindmin, 0, 0, PROPHI)

DEF_TPROP_I("wind-force-variability", t_wind_force_variability,
	"chance that wind force will change randomly",
	windforcevariability, 0, 0, 10000)

DEF_TPROP_I("wind-variability", t_wind_variability,
	"chance that wind direction will change randomly",
	windvariability, 0, 0, 10000)

DEF_TPROP_I("zz-fr", t_fraction,
	"estimated amount of terrain in the world",
	fraction, 0, 0, PROPHI)