Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of ~archive/Weapon


Ignore:
Timestamp:
Nov 30, 2007, 10:26:33 PM (17 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/Weapon

    v1 v2  
    33
    44__Dependencies__:
    5   * WorldEntity
    6   * [wiki:Projectile Projectile]
     5  * [wiki:archive/WorldEntity WorldEntity]
     6  * [wiki:archive/Projectile Projectile]
    77
    88orxonox will support many types of weapons, and it will split them up into two main elements:
    99  1. __Weapons(/GUNS)__: They are fixed modules coppled in some way with the Ship (static or dynamic)
    10   2. __[wiki:Projectile Projectiles]__: They get emitted from Weapons/guns in the Direction and speed (and other initial values) given them by __[wiki:Weapon Weapon]__
     10  2. __[wiki:Projectile Projectiles]__: They get emitted from Weapons/guns in the Direction and speed (and other initial values) given them by __[wiki:archive/Weapon Weapon]__
    1111
    12 As you can see ''[wiki:Weapon Weapon]'' and ''[wiki:Projectile Projectile]'' will be independant from each other, projectiles only get emitted by guns in a usefull manner.
     12As you can see ''[wiki:archive/Weapon Weapon]'' and ''[wiki:archive/Projectile Projectile]'' will be independant from each other, projectiles only get emitted by guns in a usefull manner.
    1313
    1414== idea ==
     
    6868  * __requestAction__: A request to an action the weapon should take next (shooting reloading and so on)
    6969  * __setCapability__: The capabilities this weapon has (direction, type of weapon (turret/directional))...
    70   * __setProjectileType__: The Type of Projectiles this Weapon should emit: (This automatically gets the FastFactory for the requested Projectiles).
     70  * __setProjectileType__: The Type of Projectiles this Weapon should emit: (This automatically gets the !FastFactory for the requested Projectiles).
    7171  * __getProjectile__: get a Projectile of the Requested type... then you can fire it :)
    7272  * __setEmissionPoint__: Where the Projectile gets emitted from
     
    7878
    7979== Howto Create a Weapon ==
    80   1. Have a look at the Howto Process of -> WorldEntity.
     80  1. Have a look at the Howto Process of -> [wiki:archive/WorldEntity WorldEntity].
    8181  2. Define a Projectile
    8282  3. Define some Animations