Minerals template added, some rewritten, comments added:
[shipsimu.git] / application / ship-simu / templates / de / game / building / base_building.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 A general building template.
4
5 @author         Roland Haeder <webmaster@ship-simu.org>
6 @version        0.0.0
7 @copyright      Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
8 @license        GNU GPL 3.0 or any newer version
9 @link           http://www.ship-simu.org
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>
23 //-->
24 <building>
25         <!-- General building data //-->
26         <building-data>
27                 <!-- Estimated dimensions of the building. //-->
28                 <dimension>
29                         <!-- Width of the building. //-->
30                         <width>{?width?}</width>
31                         <!-- Height of the building. //-->
32                         <height>{?height?}</height>
33                         <!-- Length of the building. //-->
34                         <length>{?length?}</length>
35                 </dimension>
36                 <!-- A full description of this building. //-->
37                 <description>
38                         <![CDATA[{?description?}]]>
39                 </description>
40                 <!-- General data, like short name, type, level and many more. //-->
41                 <general-data id="{?id?}" name="{?name?}" type="{?type?}" level="{?level?}">
42                         <!-- The owner of this building. //-->
43                         <owner id="{?owner_id?}" type="{?owner_type?}" owned-start="{?owner_start_timestamp?}" owned-end="{?owner_end_timestamp?}" />
44                         <!-- The occupant of this building. //-->
45                         <occupant id="{?occupant_id?}" type="{?occupant_type?}" owned-start="{?occupant_start_timestamp?}" owned-end="{?occupant_end_timestamp?}" />
46                         <!-- When this building was constructed. //-->
47                         <constructed>
48                                 <!-- When construction has started. //-->
49                                 <construction-started timestamp="{?construction_start_timestamp?}" />
50                                 <!-- And when it was finished. //-->
51                                 <construction-finished timestamp="{?construction_end_timestamp?}" />
52                         </constructed>
53                         <!-- When this building was destructed. //-->
54                         <destructed>
55                                 <!-- When destruction has started. //-->
56                                 <destruction-started timestamp="{?destruction_start_timestamp?}" />
57                                 <!-- And when it was finished. //-->
58                                 <destruction-finished timestamp="{?destruction_end_timestamp?}" />
59                                 <!-- A short reason why this building must be destructed or
60                                      demolished. //-->
61                                 <destruction-reason>
62                                         <![CDATA[{?destruction_reason?}]]>
63                                 </destruction-reason>
64                         </deconstructed>
65                 </general-data>
66         </building-data>
67         <!-- All sorts of costs for a building. //-->
68         <costs>
69                 <!-- The land-price has to be payed to the simplified government. //-->
70                 <land-price currency="{?land_currency?}" />
71                 <!-- Construction costs may be empty when this building is bougth from
72                      an other user e.g. a broker //-->
73                 <construction-costs currency="{?construction_currency?}">
74                         <construction-company extends="{?construction_template?}">
75                                 <company id="{?construct_id?}">
76                                         <personel-costs currency="{?personel_currency?}" />
77                                         <resources extends="{?resources_template?}">
78                                                 <resource id="{?resource_id?}">
79                                                         <resource-merchant extends="{?merchant_template?}">
80                                                                 <merchant id="{?merchant_id?}" />
81                                                         </resource-merchant>
82                                                 </resource>
83                                         </resources>
84                                 </company>
85                                 <construction-contract extends="{?contract_template?}">
86                                         <construction-contract id="{?construct_contract_id?}" />
87                                 </construction-contract>
88                         </construction-company>
89                 </construction-costs>
90                 <!-- Running costs are all costs that the owner/occupant has to pay for upkeeping
91                      it like house cleaning. simplified repair costs and in some way
92                      taxes. //-->
93                 <running-costs>
94                         <taxes currency="{?taxes_currency?}" />
95                         <maintenance currency="{?maintenance_currency?}">
96                                 <cleaning-costs>
97                                         <cleaning-contract contract_id="{?cleaning_contract_id?}" />
98                                 </cleaning-costs>
99                                 <repair-costs>
100                                         <repair contract_id="{?repair_contract_id?}" />
101                                 </repair-costs>
102                         </maintenance>
103                 </running-costs>
104                 <!-- For constructing a building you sometimes need to take mortgage to
105                      fund the construction costs. //-->
106                 <mortgage currency="{?mortgage_currency?}">
107                         <bank id="{?bank_id?}" />
108                         <mortgage-broker id="{?broker_id?}" />
109                         <agreement id="{?mortage_id?}">
110                 </mortgage>
111         </costs>
112         <!-- We also have technology denpencies for a building. These must be
113              understand by construction companies who made contracts with the
114              shipping company to construct this building. //-->
115         <depencies>
116                 <!-- A list of required technology to construct this building. //-->
117                 <technology-depency-list>
118                         <!-- A single required technology to construct this building. //-->
119                         <technology-depency id="{?technology_id?}" level="{?technology_level?}" />
120                 </technology-depency-list>
121         </depencies>
122 </building>