Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 7, 2011, 3:59:54 PM (13 years ago)
Author:
jo
Message:

Adjust weapon behaviour if bot dies and is respawned with a different weaponsetting than before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/orxonox/controllers/Controller.h

    r8706 r8735  
    6363            inline ControllableEntity* getControllableEntity() const
    6464                { return this->controllableEntity_; }
     65            inline void setDeathFlag()
     66                { this->bDeathFlag_ = true; }
     67            inline void resetDeathFlag()
     68                { this->bDeathFlag_ = false; }
    6569            virtual void changedControllableEntity() {}
    6670
     
    7983            PlayerInfo* player_;
    8084            ControllableEntity* controllableEntity_;
     85            bool bDeathFlag_; //<! Signal, when a controlled entity died. Flag is set in Pawn.cc and used in AIController.
    8186        private:
    8287            bool bGodMode_;
Note: See TracChangeset for help on using the changeset viewer.