Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2009, 12:33:37 AM (14 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:
2 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}
Note: See TracChangeset for help on using the changeset viewer.