Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2009, 12:33:37 AM (15 years ago)
Author:
scheusso
Message:

made some changes in NewHumanController, Pawn, CE, Controller and WeaponMode preparing the synchronisation of clients target and aimPosition

Location:
code/branches/presentation2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2

  • code/branches/presentation2/src/orxonox/worldentities/ControllableEntity.h

    r6108 r6111  
    145145            inline void setController(Controller* val)
    146146                { this->controller_ = val; }
     147           
     148            virtual void setTarget( WorldEntity* target )
     149                { this->target_ = target; }
     150            virtual WorldEntity* getTarget()
     151                { return this->target_.get(); }
    147152
    148153        protected:
     
    209214            Controller* controller_;
    210215            CameraPosition* reverseCamera_;
     216            WeakPtr<WorldEntity> target_;
    211217    };
    212218}
  • code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.cc

    r6107 r6111  
    6767
    6868        this->spawnparticleduration_ = 3.0f;
     69       
     70        this->aimPosition_ = Vector3::ZERO;
    6971
    7072        this->getPickups().setOwner(this);
  • code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.h

    r6107 r6111  
    116116
    117117            virtual void startLocalHumanControl();
     118           
     119            void setAimPosition( Vector3 position )
     120                { this->aimPosition_ = position; }
     121            Vector3 getAimPosition()
     122                { return this->aimPosition_; }
    118123
    119124        protected:
     
    146151            inline void setWeaponSystem(WeaponSystem* weaponsystem)
    147152                { this->weaponSystem_ = weaponsystem; }
     153           
     154            Vector3 aimPosition_;
    148155    };
    149156}
Note: See TracChangeset for help on using the changeset viewer.