00001 00002 00003 #ifndef CONSOLE_H 00004 #define CONSOLE_H 00005 00006 00007 #include "RenderableObject.h" 00008 #include "Vector4f.h" 00009 00010 00011 namespace pge { 00012 namespace gui { 00013 00014 00015 class TextBox; 00016 class TextEdit; 00017 00018 00019 class Console : public IRenderableObject { 00020 00021 public: 00022 //************************************************************************ 00023 // 00024 // Constructor 00025 // 00026 //************************************************************************ 00028 Console(int x, int y, int width, int height); 00029 00030 00031 //************************************************************************ 00032 // 00033 // Destructor 00034 // 00035 //************************************************************************ 00037 virtual ~Console(void); 00038 00039 00040 //************************************************************************ 00041 // 00042 // Functions 00043 // 00044 //************************************************************************ 00045 bool init(void); 00046 void render(void); 00047 void timer(unsigned int delay); 00048 00049 void show(void); 00050 void hide(void); 00051 void keyTypeCall(int keyCode); 00052 00053 00054 private: 00055 //************************************************************************ 00056 // 00057 // Variables 00058 // 00059 //************************************************************************ 00060 Vector4f m_backgroundColor; 00061 int m_xOff; 00062 int m_yOff; 00063 int m_width; 00064 int m_height; 00065 00066 // Console animation 00067 int m_aniHeight; 00068 bool m_animate; 00069 00070 TextBox *m_output; 00071 TextEdit *m_input; 00072 }; 00073 }; 00074 }; 00075 00076 #endif