Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 18, 2013, 8:01:27 PM (10 years ago)
Author:
noep
Message:

Completed HeavyCruiser collisionboxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/contentcreation/pps/noep/HeavyCruiser/INFO.txt

    r9783 r9794  
    1 TODO: 
     1==== Refer to the following links for further information ====
     2http://www.orxonox.net/wiki/HeavyCruiser
     3http://forum.orxonox.net/viewtopic.php?f=1&t=1104
     4
     5
     6    ---=== TODO ===---
    27 
    3 - Create a new class for big ships and their sub-parts.
     8- Allow Big Ships to have sub-parts.
    49 
    510(- Adapt the HUD to show individual part's health.
     
    712
    813
    9 PROBLEMS:
     14
     15    ---=== PROBLEMS ===---
    1016
    1117- When firing weapons mounted at the front of the ship, the aim is incorrect,
     
    1622  Fix:  Redesign Turret class. -> MovableEntity? ShipPart?
    1723
     24- Only Pawns are able to receive hits. However Pawns require every object to have their own weapons, shields etc.
     25  Fix:  Create an entirelly new class/interface(?), DestructibleEntity. It can be used for ShipParts, Asteroids, Turrets etc.
    1826
    19 DETAILS:
     27
     28
     29    ---=== POSSIBLE APPROACHES ===---
     30
     31- Sub-Parts are Pawns.
     32    PRO: - Basic structure of a destructible (and controllable, for turrets) is provided.
     33    CON: - Need to build something to hook Pawns together, allowing them to interact with each other.
     34
     35- Create a new class/interface: DestructibleEntity.
     36  Create a new class: ShipPart, which is a DestructibleEntity.
     37  Create a new class: Turret, which is a ShipPart.
     38    PRO: - More 'leightweight' than a Pawn. Can be used for simple things such as Asteroids too.
     39         - Parts can easily be attached to each other in XML
     40    CON: - Need to copy property of getting damage from hits from pawns
     41         - Need to add controllers for Turret again
     42
     43
     44!=== THE FOLLOWING REFERS TO THE LAST APPROACH ===!
     45
     46    HOW IT'LL LOOK IN XML
     47
     48<BigShip [parameters]>
     49
     50    <engines>
     51        ...
     52    </engines>
     53   
     54    <attached>   
     55        <Model [parameters] />
     56       
     57        <ShipPart [parameters]>
     58            <attached>
     59                <Model [parameters] />
     60            </attached>
     61            <collisionShapes>
     62                ...
     63            </collisionShapes>
     64        </ShipPart>
     65       
     66        <ShipPart [parameters]>
     67            ...
     68        </ShipPart>
     69    </attached>
     70   
     71    <collisionShapes>
     72        ...
     73    </collisionShapes>
     74   
     75<BigShip>
     76
     77
     78
     79    DETAILS:
    2080
    2181- BigShip class:
    2282    - /src/orxonox/worldentities/pawns -> Create BigShip.cc and BigShip.h, inherit from SpaceShip
    23     - Damage can be shared with sub-parts. (Implement new HUD?)
    24       - Modify damage() as needed
     83    - Damage can be shared with sub-parts. (Implement new HUD, which shows sub-parts health?)
     84     ?- How to mange/list sub-parts? Arrays?
     85      - Modify damage() as needed, calls damagePart()
    2586      - Spread damage relative to how much of the overall health a part has.
    2687        (If a part has 20% of the total health, it gets 20% of the damage)
    2788      - void damagePart(... , ShipPart part)
    2889    - Destruction of sub-parts can alter datavalues of the ship (e.g. shield or acceleration)
     90      or disable weapons
     91
     92- DestructibleEntity class
     93   ?- is a StaticEntity?
     94    - defined in XML Parameters: health, animation upon death
     95    - receives damage from hits (and from other sources?)
     96    - has health
     97    - special events on 'destruction'
     98    - special animation upon destruction
     99 
    29100- ShipPart class
     101    - is a DestructibleEntity
     102    - has a BigShip as *owner
    30103    - Has own health
    31104    - Receives damage from direct hits and from parent-part
    32105    - Triggers events on destruction (e.g. disabling weapons or weakening shields)
     106      - Invisible & not collidable? Or actually inexistent?
     107
     108- Turret class
     109   ?- is a ShipPart?
     110    - has a controller
     111
Note: See TracChangeset for help on using the changeset viewer.