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/SectionController.h

    r10719 r10722  
    5454                }
    5555            };
     56            virtual bool hasWingman()
     57            {
     58                if (this->myWingman_)
     59                    return true;
     60                else
     61                    return false;
     62            }
     63
    5664            virtual void tick(float dt); //<! Carrying out the targets set in action().
    5765
    5866            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5967            LeaderController* findNewDivisionLeader();
    60  
    61 
    6268
    6369        protected:
     
    7682        private:
    7783            Timer actionTimer_; //<! Regularly calls action().
    78             CommonController* myWingman_;
    79             LeaderController* myDivisionLeader_;
     84           
    8085            Vector3* desiredRelativePosition_;
    8186
Note: See TracChangeset for help on using the changeset viewer.