Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 3:26:43 AM (15 years ago)
Author:
landauf
Message:
  • Added option to add a Controller to a ControllableEntity in the XML file
  • Added two new classes: WaypointController (follows waypoints) and WaypointPatrolController (follows waypoints and kills enemies within a given radius)
  • Radarpoints in TeamDeathmatch are now coloured
File:
1 edited

Legend:

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

    r3038 r3049  
    130130                { return this->mouseLookSpeed_; }
    131131
     132            inline Controller* getXMLController() const
     133                { return this->xmlcontroller_; }
     134
    132135        protected:
    133136            virtual void setPlayer(PlayerInfo* player); // don't call this directly, use friend class PlayerInfo instead
     
    142145
    143146        private:
     147            void setXMLController(Controller* controller);
     148
    144149            void overwrite();
    145150            void processOverwrite();
     
    188193            std::list<CameraPosition*> cameraPositions_;
    189194            std::string cameraPositionTemplate_;
     195            Controller* xmlcontroller_;
    190196    };
    191197}
Note: See TracChangeset for help on using the changeset viewer.