Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 3:26:43 AM (15 years ago)
Author:
landauf
Message:
  • Added option to add a Controller to a ControllableEntity in the XML file
  • Added two new classes: WaypointController (follows waypoints) and WaypointPatrolController (follows waypoints and kills enemies within a given radius)
  • Radarpoints in TeamDeathmatch are now coloured
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/controllers/ArtificialController.h

    r2662 r3049  
    4747
    4848        protected:
    49             void moveToTargetPosition(float dt);
     49            void moveToPosition(const Vector3& target);
     50            void moveToTargetPosition();
     51
     52            void setTargetPosition(const Vector3& target);
    5053            void searchRandomTargetPosition();
     54
     55            void setTarget(Pawn* target);
    5156            void searchNewTarget();
    5257            void forgetTarget();
     
    5560            bool isCloseAtTarget(float distance) const;
    5661            bool isLookingAtTarget(float angle) const;
     62
     63            static bool sameTeam(ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gametype); // hack
    5764
    5865            bool bHasTargetPosition_;
Note: See TracChangeset for help on using the changeset viewer.