]> git.mxchange.org Git - shipsimu.git/commitdiff
A lot directories for game XML templates added, first building XML added
authorRoland Häder <roland@mxchange.org>
Tue, 8 Sep 2009 19:41:43 +0000 (19:41 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 8 Sep 2009 19:41:43 +0000 (19:41 +0000)
16 files changed:
.gitattributes
application/ship-simu/templates/de/.xml [new file with mode: 0644]
application/ship-simu/templates/de/code/action_ship_simu_login_refill.ctp
application/ship-simu/templates/de/game/!MISSING [new file with mode: 0644]
application/ship-simu/templates/de/game/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/game/building/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/game/building/base_building.xml [new file with mode: 0644]
application/ship-simu/templates/de/game/company/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/game/contract/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/game/merchant/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/game/research/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/game/resource/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/menu/base_menu.xml
application/ship-simu/templates/de/menu/generic_menu_entries.xml
docs/COPYING
docs/TODOs.txt

index 8b128c6881cd0884326f4ee5cbdd2e10f95712fc..c2d7bb6043369726126c9e3d59c8c42dbdf6505a 100644 (file)
@@ -217,6 +217,7 @@ application/ship-simu/main/wrapper/class_UserGovernmentDatabaseWrapper.php -text
 application/ship-simu/starter.php -text
 application/ship-simu/templates/.htaccess -text
 application/ship-simu/templates/de/.htaccess -text
+application/ship-simu/templates/de/.xml -text
 application/ship-simu/templates/de/code/action_ship_simu_login_company.ctp -text
 application/ship-simu/templates/de/code/action_ship_simu_login_government_startup_help.ctp -text
 application/ship-simu/templates/de/code/action_ship_simu_login_government_training.ctp -text
@@ -272,6 +273,15 @@ application/ship-simu/templates/de/code/shipsimu_main.ctp -text
 application/ship-simu/templates/de/code/status.ctp -text
 application/ship-simu/templates/de/emails/.htaccess -text
 application/ship-simu/templates/de/emails/text_resend_link.tpl -text
+application/ship-simu/templates/de/game/!MISSING -text
+application/ship-simu/templates/de/game/.htaccess -text
+application/ship-simu/templates/de/game/building/.htaccess -text
+application/ship-simu/templates/de/game/building/base_building.xml -text
+application/ship-simu/templates/de/game/company/.htaccess -text
+application/ship-simu/templates/de/game/contract/.htaccess -text
+application/ship-simu/templates/de/game/merchant/.htaccess -text
+application/ship-simu/templates/de/game/research/.htaccess -text
+application/ship-simu/templates/de/game/resource/.htaccess -text
 application/ship-simu/templates/de/html/.htaccess -text
 application/ship-simu/templates/de/html/nav_advert.tpl -text
 application/ship-simu/templates/de/html/selector_ship-simu.tpl -text
diff --git a/application/ship-simu/templates/de/.xml b/application/ship-simu/templates/de/.xml
new file mode 100644 (file)
index 0000000..e253bdd
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+
+@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/>
+//-->
index 84c29c078850ef05bc027374457887c711369e5a..fdc7c4e379bc6d09ae74480966f9da83ee256f24 100644 (file)
@@ -15,8 +15,8 @@ $helperInstance->addInputSelectField('type', "--- Bitte ausw&auml;hlen ---");
 $helperInstance->addSelectSubOption('currencies', "--- W&auml;hrungen ---");
 $helperInstance->addSelectOption('currency', "{?currency?}");
 
-// Raw materials
-$helperInstance->addSelectSubOption('raw_materials', "--- Rohstoffe ---");
+// Raw resources
+$helperInstance->addSelectSubOption('raw_resources', "--- Rohstoffe ---");
 $helperInstance->addSelectOption('raw_wood', "Holz");
 $helperInstance->addSelectOption('raw_iron', "Metall");
 $helperInstance->addSelectOption('raw_stones', "Steine");
diff --git a/application/ship-simu/templates/de/game/!MISSING b/application/ship-simu/templates/de/game/!MISSING
new file mode 100644 (file)
index 0000000..b2730b9
--- /dev/null
@@ -0,0 +1,4 @@
+<construction-company extends="{?construction_template?}">
+<resources extends="{?resources_template?}">
+<resource-merchant extends="{?merchant_template?}">
+<construction-contract extends="{?contract_template?}">
diff --git a/application/ship-simu/templates/de/game/.htaccess b/application/ship-simu/templates/de/game/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/templates/de/game/building/.htaccess b/application/ship-simu/templates/de/game/building/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
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>
diff --git a/application/ship-simu/templates/de/game/company/.htaccess b/application/ship-simu/templates/de/game/company/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/templates/de/game/contract/.htaccess b/application/ship-simu/templates/de/game/contract/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/templates/de/game/merchant/.htaccess b/application/ship-simu/templates/de/game/merchant/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/templates/de/game/research/.htaccess b/application/ship-simu/templates/de/game/research/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/templates/de/game/resource/.htaccess b/application/ship-simu/templates/de/game/resource/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
index 8760e6364586050c304874423db7271245a1b181..b859ba1660be25a9a59de1d6c5196a9bb6b24b4c 100644 (file)
@@ -1,4 +1,26 @@
 <?xml version="1.0" encoding="UTF-8" ?>
+<!--
+A general menu XML file. We should later on convert this into a DTD.
+
+@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/>
+//-->
 <menu>
        <header>
                <title class="{!menu_title_class?}">
index beb9c4865a7ca69e3a0ddcca5c9ad685d12e6f7f..eab5d44a9a2d8ff4ce9db984f19eef45fb3fbbda 100644 (file)
@@ -1,5 +1,26 @@
 <?xml version="1.0" encoding="UTF-8" ?>
-<!--@TODO Later versions: <menu extends="base_menu">//-->
+<!--
+Generic menu entries. You should leave this template for smooth upgrades.
+
+@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/>
+//-->
 <menu>
        <header>
                <title id="home" class="menu_title_home">
index 23d0d152571c2ce27b579f86b7c80b49e0b04cdc..05861e61c81feba4ea6a407559470d6c73e7043f 100644 (file)
@@ -1,6 +1,6 @@
-For PHP scripts except templates and compileable templates see COPYING.software.
+For PHP scripts and XML templates except compileable templates see COPYING.software.
 
 For documents see COPYING.documents.
 
-The rest of the software (shell scripts, templates, code templates) are given away
-"AS IS" and "WITHOUT ANY WARRANTY". So it shall be public domain.
+The rest of the software (shell scripts, HTML templates, code templates) are
+given away "AS IS" and "WITHOUT ANY WARRANTY". So it shall be public domain.
index 4875c9c8b10e0f568963b23b2b80470e0a75135e..e4c1031775d4b66f613795521ffcf47217aa44d5 100644 (file)
 ./inc/includes.php:36:// @TODO Find a nicer OOP-ed way for this
 ./inc/language.php:31:// @TODO Rewrite this
 ./inc/loader/class_ClassLoader.php:262:                        /* @todo: Do not die here. */
-./application/ship-simu/templates/de/menu/generic_menu_entries.xml:2:<!--@TODO Later versions: <menu extends="base_menu">//-->
 ### ### DEPRECATION FOLLOWS: ### ###
 ./application/ship-simu/main/personell/class_SimulatorPersonell.php:118:        * @deprecated
 ./application/ship-simu/main/personell/class_SimulatorPersonell.php:319:        * @deprecated