Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10138 in orxonox.OLD for branches/ai/src/ai/movement_module.h


Ignore:
Timestamp:
Dec 21, 2006, 10:14:15 PM (17 years ago)
Author:
tfahrni
Message:

startet to implement swarming

File:
1 edited

Legend:

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

    r10135 r10138  
    1414        public:
    1515                MovementModule() {}
    16                 MovementModule(NPC2* object);
    17                 virtual ~MovementModule();
     16                inline MovementModule(NPC2* object){ this->myNPC=object; this->myWorldEntity=(WorldEntity*)object;}
     17                virtual ~MovementModule(){}
    1818                virtual void process(float dt);
    1919
    20 //    static void setDistanceToPlayer(float newValue);
    21 //    static void setDistanceToNPC(float newValue);
    22 //    static void setMaxAccleartion(float newValue);
     20                static void setDistanceToPlayer(float newValue);
     21                static void setDistanceToNPC(float newValue);
     22                static void setMaxAccleartion(float newValue);
    2323//
    2424        private:
    25 //      void collectInformation(float dt);
    26 //
    27 //
    28 //      static std::vector<Vector>      hidingPoint;
    29 //      static std::vector<float>       hidingPointSize;
    30 //
     25
    3126//      static std::vector<NPC2*> npcList;
    3227//      static std::vector<Vector> npcPosition;
     
    3833//      static Vector playerMovement;
    3934//      static float playerRadius;
    40 //
    41 //      static std::vector<Vector> swarmCenter;
    42 //      static std::vector<int> swarmMemberCount;
     35
    4336
    4437                Vector myMovement;
     
    4639                float myMaxSpeed;
    4740
     41                float getRadius(WorldEntity* object);
    4842
    49                 float getRadius(WorldEntity* object);
    50 //      static float aa;
    51 //      float oldDT;
    52 //
    53 //      static float maxAccleration;
    54 //      static float distanceToPlayer;
    55 //      static float distanceToNPC;
     43                static float maxAccleration;
     44                static float distanceToPlayer;
     45                static float distanceToNPC;
    5646};
    5747
Note: See TracChangeset for help on using the changeset viewer.