Recompressing newly added files
[supertux.git] / src / supertux / console.hpp
index b463b51..d81bbf3 100644 (file)
 #include <sstream>
 #include <vector>
 
+#include "video/font_ptr.hpp"
 #include "video/surface_ptr.hpp"
 
 class Console;
 class ConsoleStreamBuffer;
 class ConsoleCommandReceiver;
 class DrawingContext;
-class Font;
 
 class Console
 {
@@ -56,6 +56,7 @@ public:
   void update(float elapsed_time);
 
   void show(); /**< display the console */
+  void open(); /**< open the console for viewing for 6 seconds */
   void hide(); /**< hide the console */
   void toggle(); /**< display the console if hidden, hide otherwise */
 
@@ -97,7 +98,7 @@ private:
   float alpha;
   int offset; /**< decrease to scroll text up */
   bool focused; /**< true if console has input focus */
-  std::auto_ptr<Font> font;
+  FontPtr font;
   float fontheight; /**< height of the font (this is a separate var, because the font could not be initialized yet but is needed in the addLine message */
 
   float stayOpen;