Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2015, 4:47:35 PM (8 years ago)
Author:
gania
Message:

Finished groundwork: AI fights enemies like I want it to. TODO implement all the functionality of old AI, like Waypoints, XMLPort

File:
1 edited

Legend:

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

    r10803 r10805  
    6565        };
    6666
     67    }
     68    namespace Action
     69    { 
     70        enum Value
     71        {
     72            FLY, FIGHT, PROTECT
     73        };
    6774    }
    6875    //none for a formation flight
     
    121128            /*void spin();
    122129            void turn180();*/
    123 
     130            Action::Value getAction ();
     131            void setAction (Action::Value action, ControllableEntity* target);
     132            void setAction (Action::Value action, const Vector3& target);
     133            void setAction (Action::Value action, const Vector3& target,  const Quaternion& orient );
    124134
    125135        protected:
     
    158168            Quaternion targetOrientation_;
    159169
     170            Vector3 destination_;
     171            bool bHasDestination;
     172
     173
    160174            void stopMoving();
    161175            void setPositionOfTarget(const Vector3& target);
     
    170184            //WeakPtr<ControllableEntity> thisEntity_;
    171185
     186           
     187
     188            Action::Value action_;
    172189            bool bEngaging_;
    173190            bool bShooting_;
Note: See TracChangeset for help on using the changeset viewer.