00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef __COEUR_H_INCLUDED__
00024 #define __COEUR_H_INCLUDED__
00025
00027 class coeur : public base
00028 {
00029 public:
00031 coeur();
00032
00034 ~coeur();
00035
00037 int init(startmenu*);
00038
00040 int update();
00041
00043 int close();
00044
00046 int setCaption(stringw);
00047
00049 IAnimatedMeshSceneNode* addMesh(stringc);
00050
00052 ILightSceneNode* addLight(int);
00053
00055 ITexture* getTexture(stringc);
00056
00058 dimension2d<s32> getDim();
00059
00061 actionMesh *getSelectedAction();
00062
00064 item getItem(int);
00065
00067 actionMesh* getActionMesh(int);
00068
00070 actionMesh* getActionMesh(ISceneNode*);
00071
00073 localItem* getObservationMesh(int);
00074
00076 localItem* getObservationItem(int);
00077
00079 localItem* getCombinaison();
00080
00082 position2d<s32> getCurPos();
00083
00085 u32 getTime();
00086
00088 stringc getVersion();
00089
00091 int play(stringc);
00092
00094 int anim(int,int,int);
00095
00097 int setSkyBox(stringc,stringc,stringc,stringc,stringc,stringc);
00098
00100 virtual bool OnEvent(const SEvent&);
00101
00103 logger* getLogger();
00104
00106 int startCredit();
00107
00109 int loadChap(int);
00110
00112 int loadLieu(int);
00113
00115 int loadLocal(int);
00116
00118 friend class console;
00119
00121 friend class pyInt;
00122
00123 IParticleSystemSceneNode* addParticleSystem();
00124
00125 private:
00126
00128 ISceneNode* getSelectedNode();
00129
00131 void pickNode(ISceneNode*,line3df,f32&,ISceneNode*&);
00132
00134 IrrlichtDevice *device;
00135
00137 IVideoDriver* driver;
00138 public:
00140 ISceneManager* smgr;
00141 private:
00143 IGUIEnvironment* env;
00144 public:
00146 ICameraSceneNode* cam;
00147 private:
00149 E_DRIVER_TYPE dr;
00150
00152 dimension2d<s32> dim;
00153
00155 int bits;
00156
00158 bool fullscreen;
00159
00161 bool stencilbuffer;
00162
00164 bool vsync;
00165
00167 int lang;
00168
00170 interface* in;
00171
00173 console* co;
00174
00176 credit* mycredit;
00177
00178 logger* mylogger;
00179
00181 bool q;
00182
00184 position2d<s32> curPos;
00185
00187 std::vector<stringc*>* pathChap;
00188
00190 std::vector<stringc*>* pathLieu;
00191
00193 std::vector<stringc*>* pathLocal;
00194
00196 chap* currentChap;
00197
00199 lieu* currentLieu;
00200
00202 local* currentLocal;
00203
00204 pyInt* py;
00205
00207 actionMesh *selectedAction;
00208
00210 IMetaTriangleSelector* metaSelector;
00211
00213 stringc pathGame;
00214
00216 bool activeScene;
00217
00219 bool activeIn;
00220
00221 #ifdef AUDIO
00223 ISoundEngine* engine;
00224 #endif
00225 };
00226
00227 #endif //__COEUR_H_INCLUDED__
00228