5 | | With the current implementation of Pawns, it is impossible to nicely build such a big ship into the game using XML. This is due to the only destructible entities being Pawns, which are dynamic entities, which again cannot be attached in XML. Therefore the structure of Pawns needs to be changed, in order to create destructible static entities. |
| 5 | The HeavyCruiser spaceship is used to show how a complex big ship could look. |
| 6 | |
| 7 | !HeavyCruiser is composed of (at least) 9 parts: (the names used to refer to the parts are in gray) |
| 8 | * Body [[span(style=color: #777777, (body) )]] |
| 9 | * Front extension L/R [[span(style=color: #777777, (frontL and frontR) )]] |
| 10 | * Sidebox L/R [[span(style=color: #777777, (partL and partR) )]] |
| 11 | * Sidearm L/R [[span(style=color: #777777, (sidearmL and sidearmR) )]] |
| 12 | * Sidearm front L/R [[span(style=color: #777777, (sidearmLfront and sidearmRfront) )]] |
| 13 | |
| 14 | ||'''Part'''||'''attached to'''||'''description/function'''|| |
| 15 | ||body||N/A||Main part of the ship.|| |
| 16 | ||frontL/R||body||Front extensions of the ship. A rapid firing, weak laser is mounted on each of them.|| |
| 17 | ||partL/R||body||Boxes on the side of the ship. Provide extra shield-and boost power.|| |
| 18 | ||sidearmL/R||body||Large sidearms of the ship. An engine is mounted on each of them, providing the ship with more acceleration.|| |
| 19 | ||sidearmL/Rfront||sidearmL/R||Front ends of the sidearms. A strong weapon can be mounted on them.|| |
| 20 | ||turrets||body||Rapid firing autonomous turrets, defending the ship against nearby opponents.|| |
| 21 | |
| 22 | == Detailed Specification == |
| 23 | |
| 24 | There is two kind of objects needed to create a big ship: |
| 25 | * The main ship body (subsequently referred to as ''!BigShip''), which is controlled like any other spaceship by a player or AI. |
| 26 | * Sub-parts of the ship (subsequently referred to as ''!ShipPart''), which are attached to either a !BigShip or a !ShipPart. They can interact with their parent-part in many ways. |
| 27 | |
| 28 | == Problems == |
| 29 | |
| 30 | With the current implementation of Pawns, it is impossible to nicely implement such a big ship into the game. This is due to the only destructible entities being Pawns, which are dynamic entities, which again cannot be attached in XML. Therefore the structure of Pawns needs to be changed, in order to create destructible static entities. |