Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10177 in orxonox.OLD for branches/ai/src/ai/ai_module.h


Ignore:
Timestamp:
Jan 3, 2007, 6:39:09 PM (17 years ago)
Author:
tfahrni
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/ai/ai_module.h

    r10158 r10177  
    1010   virtual ~AIModule(){}
    1111   virtual void process(float dt){}
    12        
     12
    1313   void setDifficulty(int newDifficulty);
    1414        inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;}
    1515        inline Vector getPosition(){return myWorldEntity->getAbsCoor();}
    16         inline Vector getMovement(){return this->movement;}
     16        inline Vector getMovement(){return movement;}
    1717        inline void setDestination(Vector destination){this->destination=destination;}
    1818        inline void setDestinationMovement(Vector destinationMovement){this->destinationMovement=destinationMovement;}
    19        
     19        inline void setWeight(int weight){this->weight=weight;}
     20        inline void setTarget(WorldEntity* target){this->target=target;}
     21
    2022 protected:
    2123   NPC2* myNPC;
    2224        WorldEntity* myWorldEntity;
    2325        std::vector<WorldEntity*>* enemyList;
     26
    2427        Vector destination;
    2528        Vector destinationMovement;
    2629        Vector movement;
     30
     31        float weight;
     32        float speedMax;
     33
     34        WorldEntity* target;
    2735};
    2836
Note: See TracChangeset for help on using the changeset viewer.