]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/game/building/base_building.xml
A lot directories for game XML templates added, first building XML added
[shipsimu.git] / application / ship-simu / templates / de / game / building / base_building.xml
diff --git a/application/ship-simu/templates/de/game/building/base_building.xml b/application/ship-simu/templates/de/game/building/base_building.xml
new file mode 100644 (file)
index 0000000..10dd1a2
--- /dev/null
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+A general building template.
+
+@author                Roland Haeder <webmaster@ship-simu.org>
+@version       0.0.0
+@copyright     Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
+@license       GNU GPL 3.0 or any newer version
+@link          http://www.ship-simu.org
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>
+//-->
+<building>
+       <!-- General building data //-->
+       <building-data>
+               <dimension width="{?building_width?}" length="{?building_length?}" height="{?building_height?}" />
+               <description>
+                       <![CDATA[{?building_description?}]]>
+               </description>
+               <general-data id="{?building_id?}" name="{?building_name?}">
+                       <owner id="{?owner_id?}" owned-start="{?owner_start_timestamp?}" owned-end="{?owner_end_timestamp?}" />
+                       <occupant id="{?occupant_id?}" owned-start="{?occupant_start_timestamp?}" owned-end="{?occupant_end_timestamp?}" />
+                       <constructed>
+                               <construction-started timestamp="{?construction_start_timestamp?}" />
+                               <construction-finished timestamp="{?construction_end_timestamp?}" />
+                       </constructed>
+                       <destructed>
+                               <destruction-started timestamp="{?destruction_start_timestamp?}" />
+                               <destruction-finished timestamp="{?destruction_end_timestamp?}" />
+                               <destruction-reason>
+                                       <![CDATA[{?destruction_reason?}]]>
+                               </destruction-reason>
+                       </deconstructed>
+               </general-data>
+       </building-data>
+       <!-- All sorts of costs for a building. //-->
+       <costs>
+               <!-- The land-price has to be payed to the simplified government. //-->
+               <land-price currency="{?land_currency?}" />
+               <!-- Construction costs may be empty when this building is bougth from
+                    an other user e.g. a broker //-->
+               <construction-costs currency="{?construction_currency?}">
+                       <construction-company extends="{?construction_template?}">
+                               <company id="{?construct_id?}">
+                                       <personel-costs currency="{?personel_currency?}" />
+                                       <resources extends="{?resources_template?}">
+                                               <resource id="{?resource_id?}">
+                                                       <resource-merchant extends="{?merchant_template?}">
+                                                               <merchant id="{?merchant_id?}" />
+                                                       </resource-merchant>
+                                               </resource>
+                                       </resources>
+                               </company>
+                               <construction-contract extends="{?contract_template?}">
+                                       <construction-contract id="{?construct_contract_id?}" />
+                               </construction-contract>
+                       </construction-company>
+               </construction-costs>
+               <!-- Running costs are all costs that the owner/occupant has to pay for upkeeping
+                    it like house cleaning. simplified repair costs and in some way
+                    taxes. //-->
+               <running-costs>
+                       <taxes currency="{?taxes_currency?}" />
+                       <maintenance currency="{?maintenance_currency?}">
+                               <cleaning-costs>
+                                       <cleaning-contract contract_id="{?cleaning_contract_id?}" />
+                               </cleaning-costs>
+                               <repair-costs>
+                                       <repair contract_id="{?repair_contract_id?}" />
+                               </repair-costs>
+                       </maintenance>
+               </running-costs>
+               <!-- For constructing a building you sometimes need to take mortgage to
+                    fund the construction costs. //-->
+               <mortgage currency="{?mortgage_currency?}">
+                       <bank id="{?bank_id?}" />
+                       <mortgage-broker id="{?broker_id?}" />
+                       <agreement id="{?mortage_id?}">
+               </mortgage>
+       </costs>
+       <!-- We also have technology and research denpencies for a building. These
+            must be understand by construction companies who made contracts with
+            the shipping company to construct this building. //-->
+       <depencies>
+               <technology id="{?technology_id?}" level="{?technology_level?}" />
+               <research id="{?research_id?}" level="{?research_level?}" />
+       </depencies>
+</building>