Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2011, 7:50:43 PM (13 years ago)
Author:
jo
Message:

Ai and tutorial improvements merged back to the trunk. AI features: all weapons are used, the ai-firestrength is configurable, bots are able to collect pickups . I've set the tutorial level as default level.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/worldentities/ControllableEntity.h

    r8706 r8891  
    9999            */
    100100            virtual void boost(bool bBoost) {}
    101            
     101
    102102            virtual void greet() {}
    103103            virtual void switchCamera();
     
    155155
    156156            inline Controller* getController() const
    157                 { return this->controller_; }
    158             inline void setController(Controller* val)
    159                 { this->controller_ = val; }
     157                { return this->controller_.get(); }
     158            void setController(Controller* val);
     159
    160160
    161161            virtual void setTarget( WorldEntity* target );
     
    163163                { return this->target_.get(); }
    164164            void setTargetInternal( uint32_t targetID );
     165            inline bool getRocket() const
     166                { return this-> bIsRocket_; }
    165167
    166168        protected:
     
    181183
    182184            Ogre::SceneNode* cameraPositionRootNode_;
     185            bool bIsRocket_; //Workaround to see, if the controllable entity is a Rocket.
    183186
    184187        private:
     
    234237            std::string cameraPositionTemplate_;
    235238            Controller* xmlcontroller_;
    236             Controller* controller_;
     239            WeakPtr<Controller> controller_;
    237240            CameraPosition* reverseCamera_;
    238241            WeakPtr<WorldEntity> target_;
Note: See TracChangeset for help on using the changeset viewer.