Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2008, 10:27:52 PM (17 years ago)
Author:
FelixSchulthess
Message:

enhanced navigation with a target designation cursor

Location:
code/trunk/src/orxonox/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/Camera.h

    r1293 r1399  
    5050        void setTargetNode(Ogre::SceneNode* obj);
    5151
     52        Ogre::Camera* cam_;
     53
    5254        void tick(float dt);
    5355        void update();
     
    6365        Ogre::SceneNode* cameraNode_;
    6466        Ogre::Vector3 oldPos;
    65         Ogre::Camera* cam_;
    6667        bool bHasFocus_;
    6768    };
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1362 r1399  
    6969      return NULL;
    7070    }
    71    
     71
    7272    SpaceShip::SpaceShip() :
    7373      //testvector_(0,0,0),
     
    239239    }
    240240
     241    Camera* SpaceShip::getCamera(){
     242        return cam_;
     243    }
     244
    241245    void SpaceShip::createCamera(){
    242246//       COUT(4) << "begin camera creation" << std::endl;
     
    422426        if (this->bLMousePressed_ && this->timeToReload_ <= 0)
    423427        {
    424          
     428
    425429            Projectile *p = new Projectile(this);
    426            
     430
    427431            p->setBacksync(true);
    428432            this->timeToReload_ = this->reloadTime_;
  • code/trunk/src/orxonox/objects/SpaceShip.h

    r1362 r1399  
    4444    {
    4545        public:
    46          
     46
    4747            static SpaceShip *getLocalShip();
    48            
     48
    4949            SpaceShip();
    5050            ~SpaceShip();
     
    6666
    6767            void getFocus();
     68            Camera* getCamera();
    6869            static SpaceShip* instance_s;
    6970            static Vector3 getSPosition();
Note: See TracChangeset for help on using the changeset viewer.