Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 22, 2015, 5:06:38 PM (8 years ago)
Author:
gania
Message:

some comments added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/WingmanController.h

    r10731 r10826  
    3232
    3333#include "controllers/CommonController.h"
    34 #include <limits>
    3534
    3635
     
    4544    {
    4645        public:
    47             WingmanController(Context* context);
    48             virtual ~WingmanController();
    49            
    50             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    51             virtual void tick(float dt); //<! Carrying out the targets set in action().
    52             CommonController* findNewLeader();
     46            //----[language demanded functions]----
     47                WingmanController(Context* context);
     48               
     49                virtual ~WingmanController();
     50            //----[/language demanded functions]----
     51           
     52            //----[orxonox demanded functions]----
     53                virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     54
     55                virtual void tick(float dt);
     56            //----[/orxonox demanded functions]----
     57
     58            //----[own functions]----
     59               CommonController* findNewLeader();
     60            //----[/own functions]----
    5361
    5462        protected:
    55             WeakPtr<CommonController> myLeader_;
     63            //----action must only be managed by this----
     64                virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour.
    5665
    57             virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets.
    58 
    59 
    60                      
    6166        private:
    62 
    63 
    64             Timer actionTimer_; //<! Regularly calls action().
    65            
     67            //----private variables-----
     68                WeakPtr<CommonController> myLeader_;
     69                Timer actionTimer_; //<! Regularly calls action().
     70              
    6671    };
    6772}
Note: See TracChangeset for help on using the changeset viewer.