00001 #ifndef STATEFLOCKSIMULATION_H
00002 #define STATEFLOCKSIMULATION_H
00003
00004 #include "irrlicht.h"
00005 #include "state.h"
00006
00007 class Gui;
00008 class Flock;
00009 class Terrain;
00010
00012
00015 class StateFlockSimulation : public State
00016 {
00017 public:
00021 StateFlockSimulation(irr::c8* n, irr::IrrlichtDevice* d);
00022
00024 ~StateFlockSimulation();
00025
00028 bool OnEvent(irr::SEvent event);
00029
00031 void entry(void);
00032
00034 void exit(void);
00035
00038 void render(irr::u32 deltaTime);
00039
00040 protected:
00041
00042 private:
00043
00044 void moveCamera(irr::f32 speed);
00045 void addFlock(void);
00046
00047 irr::scene::ICameraSceneNode* camera;
00048 irr::core::array<Flock*> flocks;
00049 Terrain* terrain;
00050 Gui* guiFlock;
00051 Gui* guiMesh;
00052 };
00053
00054 #endif // STATEFLOCKSIMULATION_H