| 30 | === Desired final form === |
| 31 | |
| 32 | Big ships should easily be assembled in an XML template like any other ship. |
| 33 | |
| 34 | Here an example how this could look: |
| 35 | {{{ |
| 36 | <BigShip [parameters]> |
| 37 | |
| 38 | <engines> |
| 39 | ... |
| 40 | </engines> |
| 41 | |
| 42 | <attached> |
| 43 | <Model [parameters] /> |
| 44 | |
| 45 | <ShipPart [parameters]> |
| 46 | <attached> |
| 47 | <Model [parameters] /> |
| 48 | </attached> |
| 49 | <collisionShapes> |
| 50 | ... |
| 51 | </collisionShapes> |
| 52 | </ShipPart> |
| 53 | |
| 54 | <ShipPart [parameters]> |
| 55 | ... |
| 56 | </ShipPart> |
| 57 | </attached> |
| 58 | |
| 59 | <collisionShapes> |
| 60 | ... |
| 61 | </collisionShapes> |
| 62 | |
| 63 | <BigShip> |
| 64 | }}} |
| 65 | |
| 66 | The parameters of !BigShip and !ShipPart describe how the parts interact with each other. This requires many different functions, here's a few examples: |
| 67 | * Damage-sharing |
| 68 | |
| 69 | === !BigShip === |
| 70 | |
| 71 | The !BigShip class could be an extension of the existing !SpaceShip class.[[br]] |
| 72 | Additionally to a normal spaceships functions, |
| 73 | |
| 74 | === !ShipPart === |
| 75 | |
| 76 | |
| 77 | |