Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2007, 10:11:27 PM (18 years ago)
Author:
bknecht
Message:

working AI added (put them aside if you want)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/NPC.h

    r619 r627  
    99
    1010// includes
    11 #include "WorldEntity.h"
    1211#include "Model.h"
    1312
     
    2019      NPC();
    2120      virtual ~NPC();
     21      virtual void loadParams(TiXmlElement* xmlElem);
    2222      void tick(float dt);
    2323      void update();
     
    2525
    2626    private:
    27       float getDistance(NPC* temp);
    28       void calculateAcceleration(NPC** arrayOfElements);
    29       Vector3 separation(NPC** arrayOfElements);
    30       Vector3 alignment(NPC** arrayOfElements);
    31       Vector3 cohesion(NPC** arrayOfElements);
     27      float getDistance(WorldEntity* temp);
     28      void calculateAcceleration();
     29      Vector3 separation();
     30      Vector3 alignment();
     31      Vector3 cohesion();
    3232
    3333
Note: See TracChangeset for help on using the changeset viewer.