Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2015, 12:08:30 PM (9 years ago)
Author:
gania
Message:

created destructor functions and improved findNewLeader and findNewDivisionLeader

File:
1 edited

Legend:

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

    r10719 r10722  
    6565                }
    6666            };
     67            virtual bool hasWingman()
     68            {
     69                if (this->myWingman_)
     70                    return true;
     71                else
     72                    return false;
     73            }
     74            virtual bool hasFollower()
     75            {
     76                if (this->myFollower_)
     77                    return true;
     78                else
     79                    return false;
     80            };
     81           
     82
    6783            virtual void tick(float dt); //<! Carrying out the targets set in action().
    6884
    69                        
    7085
    7186        protected:
     
    7994                        FormationMode formationMode_;
    8095                       
    81                         CommonController* myWingman_;
    82                 LeaderController* myFollower_;
     96                       
    8397               
    8498
Note: See TracChangeset for help on using the changeset viewer.