Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 11, 2009, 5:39:53 PM (15 years ago)
Author:
wirthmi
Message:

First implementation of direction shooting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/steering/src/orxonox/weaponsystem/WeaponMode.h

    r5929 r6045  
    3838#include "core/SubclassIdentifier.h"
    3939#include "tools/Timer.h"
     40
     41#include "weaponsystem/Weapon.h"
     42#include "weaponsystem/WeaponPack.h"
     43#include "weaponsystem/WeaponSystem.h"
     44#include "worldentities/pawns/Pawn.h"
     45#include "controllers/Controller.h"
    4046
    4147namespace orxonox
     
    125131                { return this->mode_; }
    126132
     133            inline Vector3 getTarget()
     134                { return this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getController()->getTarget(); }
     135
    127136        protected:
    128137            virtual void fire() = 0;
Note: See TracChangeset for help on using the changeset viewer.