Renamed 'ship-simu' to 'shipsimu' + added 'core' and symlink to core/inc
[shipsimu.git] / application / shipsimu / templates / game / engine / base_engine.xml
diff --git a/application/shipsimu/templates/game/engine/base_engine.xml b/application/shipsimu/templates/game/engine/base_engine.xml
new file mode 100644 (file)
index 0000000..675d90f
--- /dev/null
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+A general engine 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/>
+//-->
+<engine>
+       <!-- General data about this engine. //-->
+       <engine-data>
+               <id>{?id?}</id>
+               <name>{?name?}</name>
+               <type>{?type?}</type>
+               <horse-power>{?horse_power?}</horse-power>
+       </engine-data>
+       <!-- Type of fuel we need. May be left out if this "engine" is e.g. a sail. //-->
+       <fuel>
+               <fuel-id>{?fuel_id?}</fuel-id>
+               <fuel-name>{?fuel_name?}</fuel-name>
+               <fuel-type>{?fuel_type?}</fuel-type>
+       </fuel>
+       <!-- Simplified dimensions of this engine. Can be left out for sails. //-->
+       <dimensions>
+               <width>{?width?}</width>
+               <height>{?height?}</height>
+               <length>{?length?}</length>
+       </dimensions>
+       <!-- Some engine require knowledge in specific technologies. //-->
+       <depenndencies>
+               <!-- A list of required technology to build this engine. A better level
+                    may increase the horse power of this engine. Some ships require
+                    higher horse power or else it won't move. //-->
+               <technology-dependency-list technology-dependency-count="{?technology_dependency_count?}">
+                       <!-- A single technology dependency. //-->
+                       <technology-dependency>
+                               <technology-id>{[?technology_id?}</technology-id>
+                               <technology-name>{[?technology_name?}</technology-name>
+                               <technology-level>{[?technology_level?}</technology-level>
+                       </technology-dependency>
+               </technology-dependency-list>
+       </depenndencies>
+</engine>