Technology XML added, prefixes removed:
[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                 <dimension width="{?width?}" length="{?length?}" height="{?height?}" />
28                 <description>
29                         <![CDATA[{?description?}]]>
30                 </description>
31                 <general-data id="{?id?}" name="{?name?}">
32                         <owner id="{?owner_id?}" type="{?owner_type?}" owned-start="{?owner_start_timestamp?}" owned-end="{?owner_end_timestamp?}" />
33                         <occupant id="{?occupant_id?}" type="{?occupant_type?}" owned-start="{?occupant_start_timestamp?}" owned-end="{?occupant_end_timestamp?}" />
34                         <constructed>
35                                 <construction-started timestamp="{?construction_start_timestamp?}" />
36                                 <construction-finished timestamp="{?construction_end_timestamp?}" />
37                         </constructed>
38                         <destructed>
39                                 <destruction-started timestamp="{?destruction_start_timestamp?}" />
40                                 <destruction-finished timestamp="{?destruction_end_timestamp?}" />
41                                 <destruction-reason>
42                                         <![CDATA[{?destruction_reason?}]]>
43                                 </destruction-reason>
44                         </deconstructed>
45                 </general-data>
46         </building-data>
47         <!-- All sorts of costs for a building. //-->
48         <costs>
49                 <!-- The land-price has to be payed to the simplified government. //-->
50                 <land-price currency="{?land_currency?}" />
51                 <!-- Construction costs may be empty when this building is bougth from
52                      an other user e.g. a broker //-->
53                 <construction-costs currency="{?construction_currency?}">
54                         <construction-company extends="{?construction_template?}">
55                                 <company id="{?construct_id?}">
56                                         <personel-costs currency="{?personel_currency?}" />
57                                         <resources extends="{?resources_template?}">
58                                                 <resource id="{?resource_id?}">
59                                                         <resource-merchant extends="{?merchant_template?}">
60                                                                 <merchant id="{?merchant_id?}" />
61                                                         </resource-merchant>
62                                                 </resource>
63                                         </resources>
64                                 </company>
65                                 <construction-contract extends="{?contract_template?}">
66                                         <construction-contract id="{?construct_contract_id?}" />
67                                 </construction-contract>
68                         </construction-company>
69                 </construction-costs>
70                 <!-- Running costs are all costs that the owner/occupant has to pay for upkeeping
71                      it like house cleaning. simplified repair costs and in some way
72                      taxes. //-->
73                 <running-costs>
74                         <taxes currency="{?taxes_currency?}" />
75                         <maintenance currency="{?maintenance_currency?}">
76                                 <cleaning-costs>
77                                         <cleaning-contract contract_id="{?cleaning_contract_id?}" />
78                                 </cleaning-costs>
79                                 <repair-costs>
80                                         <repair contract_id="{?repair_contract_id?}" />
81                                 </repair-costs>
82                         </maintenance>
83                 </running-costs>
84                 <!-- For constructing a building you sometimes need to take mortgage to
85                      fund the construction costs. //-->
86                 <mortgage currency="{?mortgage_currency?}">
87                         <bank id="{?bank_id?}" />
88                         <mortgage-broker id="{?broker_id?}" />
89                         <agreement id="{?mortage_id?}">
90                 </mortgage>
91         </costs>
92         <!-- We also have technology and research denpencies for a building. These
93              must be understand by construction companies who made contracts with
94              the shipping company to construct this building. //-->
95         <depencies>
96                 <technology-list>
97                         <technology id="{?technology_id?}" level="{?technology_level?}" />
98                 </technology-list>
99                 <research-list>
100                         <research id="{?research_id?}" level="{?research_level?}" />
101                 </research-list>
102         </depencies>
103 </building>