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