Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 21, 2011, 11:10:54 PM (13 years ago)
Author:
jo
Message:

Buxfix.

Location:
code/branches/ai2/src/orxonox/worldentities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/orxonox/worldentities/ControllableEntity.cc

    r8733 r8852  
    6767        this->camera_ = 0;
    6868        this->xmlcontroller_ = 0;
    69         this->controller_ = 0;
     69        //this->controller_ = 0;
    7070        this->reverseCamera_ = 0;
    7171        this->bDestroyWhenPlayerLeft_ = false;
     
    190190        return counter;
    191191    }
    192    
     192
    193193    bool ControllableEntity::setCameraPosition(unsigned int index)
    194194    {
     
    310310    }
    311311
     312    void ControllableEntity::setController(Controller* val)
     313    {
     314        this->controller_ = val;
     315    }
     316
    312317    void ControllableEntity::setTarget( WorldEntity* target )
    313318    {
  • code/branches/ai2/src/orxonox/worldentities/ControllableEntity.h

    r8733 r8852  
    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 );
     
    237237            std::string cameraPositionTemplate_;
    238238            Controller* xmlcontroller_;
    239             Controller* controller_;
     239            WeakPtr<Controller> controller_;
    240240            CameraPosition* reverseCamera_;
    241241            WeakPtr<WorldEntity> target_;
     242            WeakPtr<Controller> test_;
    242243    };
    243244}
  • code/branches/ai2/src/orxonox/worldentities/pawns/Pawn.h

    r8706 r8852  
    195195            float maxHealth_;
    196196            float initialHealth_;
    197            
     197
    198198            float shieldHealth_;
    199199            float maxShieldHealth_;
Note: See TracChangeset for help on using the changeset viewer.