Added to generic directory
[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                 <dimensions>
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                 </dimensions>
36                 <!--A summary for this building. //-->
37                 <summary>
38                         <![CDATA[{?summary?}]]>
39                 </summary>
40                 <!-- A full description of this building. //-->
41                 <description>
42                         <![CDATA[{?description?}]]>
43                 </description>
44                 <!-- General data, like short name, type, level and many more. //-->
45                 <general-data>
46                         <id>{?id?}</id>
47                         <name>{?name?}</name>
48                         <type>{?type?}</type>
49                         <level>{?level?}</level>
50                         <!-- The owner of this building. //-->
51                         <owner id="{?owner_id?}" type="{?owner_type?}" owned-start="{?owner_start_timestamp?}" owned-end="{?owner_end_timestamp?}" />
52                         <!-- The occupant of this building. //-->
53                         <occupant id="{?occupant_id?}" type="{?occupant_type?}" owned-start="{?occupant_start_timestamp?}" owned-end="{?occupant_end_timestamp?}" />
54                         <!-- When this building was constructed. //-->
55                         <constructed>
56                                 <!-- When construction has started. //-->
57                                 <construction-started timestamp="{?construction_start_timestamp?}" />
58                                 <!-- And when it was finished. //-->
59                                 <construction-finished timestamp="{?construction_end_timestamp?}" />
60                         </constructed>
61                         <!-- When this building was destructed. //-->
62                         <destructed>
63                                 <!-- When destruction has started. //-->
64                                 <destruction-started timestamp="{?destruction_start_timestamp?}" />
65                                 <!-- And when it was finished. //-->
66                                 <destruction-finished timestamp="{?destruction_end_timestamp?}" />
67                                 <!-- A short reason why this building must be destructed or
68                                      demolished. //-->
69                                 <destruction-reason>
70                                         <![CDATA[{?destruction_reason?}]]>
71                                 </destruction-reason>
72                         </deconstructed>
73                 </general-data>
74         </building-data>
75         <!-- All sorts of costs for a building. //-->
76         <costs>
77                 <!-- The land-price has to be payed to the simplified government. //-->
78                 <land-price currency="{?land_currency?}" />
79                 <!-- Construction costs may be empty when this building is bougth from
80                      an other user e.g. a broker //-->
81                 <construction-costs>
82                         <currency>{?construction_currency?}</currency>
83                         <construction-company extends="{?construction_template?}">
84                                 <!-- The construction company. //-->
85                                 <company>
86                                         <id>{?construct_id?}</id>
87                                         <!-- A construction of a building requires personel. We
88                                              summary their salery here for simplicy. //-->
89                                         <personel-costs currency="{?personel_currency?}" />
90                                         <!-- A lot resources like steel and concrete are required
91                                              for new high buildings. Some older or futuristic may
92                                              require different resources. //-->
93                                         <resource-list extends="{?resources_template?}">
94                                                 <!-- A single resource and its amount to construct this
95                                                      building. //-->
96                                                 <resource>
97                                                         <id>{?resource_id?}</id>
98                                                         <amount>{?resource_amount?}</amount>
99                                                         <!-- The merchant dealing with this resource. //-->
100                                                         <resource-merchant extends="{?merchant_template?}">
101                                                                 <merchant id="{?merchant_id?}" />
102                                                         </resource-merchant>
103                                                 </resource>
104                                         </resource-list>
105                                 </company>
106                                 <!-- The construction contract for constructing this building. //-->
107                                 <construction-contract extends="{?contract_template?}">
108                                         <construction-contract id="{?construct_contract_id?}" />
109                                 </construction-contract>
110                         </construction-company>
111                 </construction-costs>
112                 <!-- Running costs are all costs that the owner/occupant has to pay for upkeeping
113                      it like house cleaning. simplified repair costs and in some way
114                      taxes. //-->
115                 <running-costs>
116                         <!-- Taxes for the occupied lot. //-->
117                         <taxes currency="{?taxes_currency?}" />
118                         <!-- A building has mostly maintenance costs. //-->
119                         <maintenance>
120                                 <!-- Almost all buildings needs to be cleaned. //-->
121                                 <cleaning-costs>
122                                         <currency>{?cleaning_currency?}</currency>
123                                         <!-- The cleaning company. //-->
124                                         <cleaning-company id="{?cleaning_id?}" />
125                                         <!-- The contract for cleaning this building. //-->
126                                         <cleaning-contract contract_id="{?cleaning_contract_id?}" />
127                                 </cleaning-costs>
128                                 <repair-costs>
129                                         <currency>{?repair_currency?}</currency>
130                                         <repair contract_id="{?repair_contract_id?}" />
131                                 </repair-costs>
132                         </maintenance>
133                 </running-costs>
134                 <!-- For constructing a building you sometimes need to take mortgage to
135                      fund the construction costs. //-->
136                 <mortgage>
137                         <currency>{?mortgage_currency?}</currency>
138                         <!-- The bank paying the mortage, if not provided, the following
139                              mortage broker must be provided. //-->
140                         <bank id="{?bank_id?}" />
141                         <!-- A mortage broker who has payed the mortage. //-->
142                         <mortgage-broker id="{?broker_id?}" />
143                         <!-- The contract behind the mortage. //-->
144                         <contract id="{?mortage_id?}" />
145                 </mortgage>
146         </costs>
147         <!-- We also have technology denpencies for a building. These must be
148              understand by construction companies who made contracts with the
149              shipping company to construct this building. //-->
150         <dependencies>
151                 <!-- A list of required technology to construct this building. //-->
152                 <technology-dependency-list>
153                         <!-- A single required technology to construct this building. //-->
154                         <technology-dependency>
155                                 <id>{?technology_id?}</id>
156                                 <type>{?technology_type?}</type>
157                                 <level>{?technology_level?}</level>
158                         </technology-dependency>
159                 </technology-dependency-list>
160         </dependencies>
161 </building>