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/Orxonox.cc

    r616 r627  
    6363#include "objects/Tickable.h"
    6464#include "objects/Timer.h"
     65#include "objects/NPC.h"
    6566#include "core/ArgReader.h"
    6667#include "core/Factory.h"
     
    9091      {
    9192        auMan_->update();
     93        updateAI();
    9294
    9395        if(mode_==PRESENTATION)
     
    100102        mKeyboard->capture();
    101103        return !mKeyboard->isKeyDown(OIS::KC_ESCAPE);
     104      }
     105
     106      void updateAI()
     107      {
     108        for(Iterator<NPC> it = ObjectList<NPC>::start(); it; ++it)
     109        {
     110          it->update();
     111        }
    102112      }
    103113
Note: See TracChangeset for help on using the changeset viewer.