lib: mnit_app use app.nit
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 1 May 2014 15:49:33 +0000 (11:49 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 21 May 2014 14:36:42 +0000 (10:36 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/mnit/mnit_app.nit

index fdb9409..68af697 100644 (file)
 # General Mnit application structure
 module mnit_app
 
+import ::app
 import mnit_display
 
 # An App instance serves as base to every Mnit projects.
 #
 # This class is redefed by plateforme modules and so
 # App can be specialized directly in the user app.
-abstract class App
+redef class App
        type IE: InputEvent
        type D: Display
        type I: Image
@@ -83,15 +84,6 @@ abstract class App
        # Called before destroying the window
        fun term_window do end
 
-       # Helper function for logging
-       fun log_error( msg: String ) do print "#nit error: {msg}"
-
-       # Helper function for logging
-       fun log_warning( msg: String ) do print "#nit warn: {msg}"
-
-       # Helper function for logging
-       fun log_info( msg: String ) do print "#nit info: {msg}"
-
        # Receive and deal with all inputs
        fun input( event: InputEvent ): Bool
        do