Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2005, 6:07:47 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: orxonox runs again (the TrackManager produces speed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/weapon.h

    r4955 r4959  
    11/*!
    2     \file weapon.h
    3   *  a weapon that a  can use
    4 
    5 
    6     A weapon is characterized by:
    7      o firing-rate: the initial firing rate of a weapon (1/s = Herz)
    8      o slowdown-factor: this is a factor d: exp(-d*x), d is element of all positive R. it determines how fast the firing-rate will slow down. if no slowdown: d=0, the bigger d is, the faster the weapon will slow down!
    9      o energy-consumption: this determines the energy that has to be used to produce this projectile = costs per projectile
    10 
    11     Furthermore there are some other attributes, that will help to represent a firing
    12     weapon in this world:
    13      o sound file/ressource: this is a pointer to the sound-file/ressource. however it may be represented
    14      o animations
    15 */
     2 * @file weapon.h
     3 *
     4 * Weapon is the mayor baseclass for all weapons. it is quite extensive, and expensive in use,
     5 * because each weapon will know virutal functions for the WorldEntity's part, and also virtuals
     6 * for Fireing/Reloading/...,
     7 * quickly said: Weapon is a wrapper for weapons, that makes it easy to very quickly implement
     8 * new Weapons, and with them make this game better, than any game before it, because still
     9 * Weapons (GUNS) are the most important thing in life :?... no to be serious
     10 * @see Weapon
     11 */
    1612
    1713
     
    5652} WeaponState;
    5753
    58 
    59 //! a weapon can be left or right sided
    60 /**
    61  * @todo this will be reset with mirror X/Y/Z
    62  */
    63 #define    W_LEFT        0
    64 #define    W_RIGHT       1
     54//! an enumerator defining capabilities of a WeaponSlot
     55typedef enum
     56{
     57  WTYPE_DIRECTIONAL   = 0x00000001,           //!< Weapon is directional/Slot is able to carry directional weapons
     58  WTYPE_TURRET        = 0x00000002,           //!< Weapon is a turret/slot is able to carry turrets
     59  WTYPE_ALLKINDS      = 0x0000000f,           //!< Weapon is all types/Slot is able to carry all kinds of weapons
     60
     61  WTYPE_FORWARD       = 0x00000010,           //!< Weapon fires forwards/Slot is able to carry weapons firing forwards
     62  WTYPE_BACKWARD      = 0x00000020,           //!< Weapon fires backwards/Slot is able to carry weapons firing backwards
     63  WTYPE_LEFT          = 0x00000040,           //!< Weapon fires to the left/Slot is able to carry weapons firing to the left
     64  WTYPE_RIGHT         = 0x00000080,           //!< Weapon fires to the right/Slot is able to carry weapons firing to the right
     65  WTYPE_ALLDIRS       = 0x000000f0,           //!< Weapon has no specific firing direction/Slot can fire into all directions
     66
     67  WTYPE_ALL           = 0x000000ff,           //!< Weapon has no limitations/Slot can handle all kinds of Weapon.
     68} W_Capability;
    6569
    6670//! An abstract class, that describes weapons
Note: See TracChangeset for help on using the changeset viewer.