1 <?xml version="1.0" encoding="UTF-8" ?>
3 A general building template.
5 @author Roland Haeder <webmaster@ship-simu.org>
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
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.
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.
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/>
25 <!-- General building data //-->
27 <!-- Estimated dimensions of the building. //-->
28 <estimated-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 </estimated-dimensions>
36 <!--A summary for this building. //-->
38 <![CDATA[{?summary?}]]>
40 <!-- A full description of this building. //-->
42 <![CDATA[{?description?}]]>
44 <!-- General data, like short name, type, level and many more. //-->
49 <level>{?level?}</level>
50 <max-floors>{?max_floors?}</max-floors>
51 <!-- The owner of this building. //-->
52 <owner id="{?owner_id?}" type="{?owner_type?}" owned-start="{?owner_start_timestamp?}" owned-end="{?owner_end_timestamp?}" />
53 <!-- The occupant of this building. //-->
54 <occupant id="{?occupant_id?}" type="{?occupant_type?}" owned-start="{?occupant_start_timestamp?}" owned-end="{?occupant_end_timestamp?}" />
55 <!-- When this building was constructed. //-->
57 <!-- When construction has started. //-->
58 <construction-started timestamp="{?construction_start_timestamp?}" />
59 <!-- And when it was finished. //-->
60 <construction-finished timestamp="{?construction_end_timestamp?}" />
62 <!-- When this building was destructed. //-->
64 <!-- When destruction has started. //-->
65 <destruction-started timestamp="{?destruction_start_timestamp?}" />
66 <!-- And when it was finished. //-->
67 <destruction-finished timestamp="{?destruction_end_timestamp?}" />
68 <!-- A short reason why this building must be destructed or
71 <![CDATA[{?destruction_reason?}]]>
76 <!-- All sorts of costs for a building. //-->
78 <!-- The land-price has to be payed to the simplified government. //-->
79 <land-price currency="{?land_currency?}" />
80 <!-- Construction costs may be empty when this building is bougth from
81 an other user e.g. a broker //-->
83 <currency>{?construction_currency?}</currency>
84 <construction-company extends="{?construction_template?}">
85 <!-- The construction company. //-->
87 <company-id>{?construct_id?}</company-id>
88 <!-- A construction of a building requires personel. We
89 summary their salery here for simplicy. //-->
90 <personel-costs currency="{?personel_currency?}" />
91 <!-- A lot resources like steel and concrete are required
92 for new high buildings. Some older or futuristic may
93 require different resources. //-->
94 <resource-list extends="{?resources_template?}">
95 <!-- A single resource and its amount to construct this
98 <resource-id>{?resource_id?}</resource-id>
99 <amount>{?resource_amount?}</amount>
100 <!-- The merchant dealing with this resource. //-->
101 <resource-merchant extends="{?merchant_template?}">
102 <merchant id="{?merchant_id?}" />
107 <!-- The construction contract for constructing this building. //-->
108 <construction-contract extends="{?contract_template?}">
109 <construction-contract id="{?construct_contract_id?}" />
110 </construction-contract>
111 </construction-company>
112 </construction-costs>
113 <!-- Running costs are all costs that the owner/occupant has to pay for upkeeping
114 it like house cleaning. simplified repair costs and in some way
117 <!-- Taxes for the occupied lot. //-->
118 <taxes currency="{?taxes_currency?}" />
119 <!-- A building has mostly maintenance costs. //-->
121 <!-- Almost all buildings needs to be cleaned. //-->
123 <currency>{?cleaning_currency?}</currency>
124 <!-- The cleaning company. //-->
125 <cleaning-company id="{?cleaning_id?}" />
126 <!-- The contract for cleaning this building. //-->
127 <cleaning-contract contract_id="{?cleaning_contract_id?}" />
130 <currency>{?repair_currency?}</currency>
131 <repair contract_id="{?repair_contract_id?}" />
135 <!-- For constructing a building you sometimes need to take mortgage to
136 fund the construction costs. //-->
138 <currency>{?mortgage_currency?}</currency>
139 <!-- The bank paying the mortage, if not provided, the following
140 mortage broker must be provided. //-->
141 <bank id="{?bank_id?}" />
142 <!-- A mortage broker who has payed the mortage. //-->
143 <mortgage-broker id="{?broker_id?}" />
144 <!-- The contract behind the mortage. //-->
145 <contract id="{?mortage_id?}" />
148 <!-- We also have technology denpencies for a building. These must be
149 understand by construction companies who made contracts with the
150 shipping company to construct this building. //-->
152 <!-- A list of required technology to construct this building. //-->
153 <technology-dependency-list technology-dependency-count="{?technology_dependency_count?}">
154 <!-- A single required technology to construct this building. //-->
155 <technology-dependency>
156 <technology-id>{?technology_id?}</technology-id>
157 <technology-name>{?technology_name?}</technology-name>
158 <technology-type>{?technology_type?}</technology-type>
159 <technology-level>{?technology_level?}</technology-level>
160 </technology-dependency>
161 </technology-dependency-list>
163 <!-- A list of floors this building has. //-->
164 <floor-list floor-count="{?floor_count?}">
165 <!-- A single floor where we can add rooms to. //-->