pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.38,1.39 editor.hx


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.38,1.39 editor.hxx,1.20,1.21
Date: 5 Nov 2002 03:02:51 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv26098/editor

Modified Files:
        editor.cxx editor.hxx 
Log Message:
added some init/deinit functions

Index: editor.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor.cxx,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- editor.cxx  9 Oct 2002 14:35:55 -0000       1.38
+++ editor.cxx  5 Nov 2002 03:02:48 -0000       1.39
@@ -58,6 +58,18 @@
   return instance_; 
 }
 
+void
+Editor::init()
+{
+  instance_ = 0;
+}
+
+void
+Editor::deinit()
+{
+  delete instance_;
+}
+
 Editor::Editor () : event_handler_ref_counter(0),
                     move_x(0), move_y(0), show_help_screen(true), 
tool(SELECTOR_TOOL)
 {

Index: editor.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor.hxx,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- editor.hxx  3 Oct 2002 12:33:09 -0000       1.20
+++ editor.hxx  5 Nov 2002 03:02:48 -0000       1.21
@@ -96,6 +96,8 @@
   virtual ~Editor ();
   
   static Editor* instance ();
+  static void init();
+  static void deinit();
 
   std::string read_string (const std::string & prefix = "", const std::string 
& default_str = "");
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]