Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2005, 12:33:31 AM (19 years ago)
Author:
bensch
Message:

world_entities: new AimingTurret added.
This turret aims a Target that is the nearest one, and shoots in its direction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/world_entities/weapons/weapon_manager.h

    r5453 r5527  
    1717// FORWARD DECLARATION
    1818template <class T> class tAnimation;
     19template <class T> class tIterator;
    1920
    2021
     
    7778
    7879    /** @returns a fixed target namely the Crosshair's 3D position */
    79     inline PNode* getFixedTarget() { return this->crosshair; };
     80    inline PNode* getFixedTarget() const { return this->crosshair; };
     81    PNode* getSomeTarget();
     82    PNode* getDistanceTarget(const PNode* carrier, float distance);
     83
    8084    void fire();
     85    //! @TODO: implement this function (maybe also in Weapon itself)
     86    void releaseFire();
    8187
    8288    void tick(float dt);
     
    102108    Crosshair*              crosshair;                                //!< an aim.
    103109    tAnimation<Crosshair>*  crossHairSizeAnim;                        //!< An animation for the crosshair (scaling)
     110
     111    tIterator<BaseObject>*  targetIterator;                           //!< An iterator for traversion lists of enemies.
    104112};
Note: See TracChangeset for help on using the changeset viewer.