Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2010, 11:37:48 AM (15 years ago)
Author:
scheusso
Message:

made registerVariables always private. otherwise bad things may happen with variables registered twice or even 3 times (as has happened in ControllableEntity until now)

Location:
code/branches/network2/src/orxonox/worldentities/pawns
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network2/src/orxonox/worldentities/pawns/Pawn.h

    r6417 r6448  
    4949            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5050            virtual void tick(float dt);
    51             void registerVariables();
    5251
    5352            inline bool isAlive() const
     
    151150
    152151        private:
     152            void registerVariables();
    153153            inline void setWeaponSystem(WeaponSystem* weaponsystem)
    154154                { this->weaponSystem_ = weaponsystem; }
  • code/branches/network2/src/orxonox/worldentities/pawns/SpaceShip.h

    r5781 r6448  
    4747            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4848            virtual void tick(float dt);
    49             void registerVariables();
    5049            void setConfigValues();
    5150
     
    9897
    9998        private:
     99            void registerVariables();
    100100            virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const;
    101101
    102         private:
    103102            void loadEngineTemplate();
    104103
  • code/branches/network2/src/orxonox/worldentities/pawns/Spectator.h

    r6417 r6448  
    4444
    4545            void setConfigValues();
    46             void registerVariables();
    4746            virtual void tick(float dt);
    4847
     
    6362
    6463        private:
     64            void registerVariables();
    6565            void changedGreeting();
    6666            void changedFlareVisibility();
Note: See TracChangeset for help on using the changeset viewer.