00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef __CONSOLE_H_INCLUDED__
00024 #define __CONSOLE_H_INCLUDED__
00025
00027 class console : public base
00028 {
00029 public:
00031 console();
00032
00034 ~console();
00035
00037 int init(coeur *,IGUIEnvironment *);
00038
00040 int update();
00041
00043 int close();
00044
00046 bool OnEvent(const SEvent&);
00047
00049 void write(std::string const&);
00050
00052 void position();
00053
00055 void rotation();
00056
00058 void target();
00059
00062 void exit();
00063
00065 void quit();
00066
00068 void help();
00069
00071 void fps();
00072
00073 private:
00075 IrrlichtDevice *device;
00076
00078 IGUIEnvironment* env;
00079
00081 stringw *text;
00082
00084 IGUIImage *cons;
00085
00087 IGUIEditBox *tx;
00088
00090 IGUIEditBox* box;
00091
00093 IGUIStaticText* FPS;
00094
00096 std::vector<stringw>* history;
00097
00099 unsigned int histPos;
00100 };
00101
00102 #endif //__CONSOLE_H_INCLUDED__
00103