[Top][All Lists]
[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 = "");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.38,1.39 editor.hxx,1.20,1.21,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src credits.cxx,1.12,1.13 credits.hxx,1.9,1.10 pingu_action_factory.cxx,1.9,1.10 pingu_action_factory.hxx,1.8,1.9 pingus_main.cxx,1.35,1.36 pingus_menu_manager.cxx,1.16,1.17 pingus_menu_manager.hxx,1.15,1.16 screen_manager.cxx,1.25,1.26 screen_manager.hxx,1.14,1.15
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src credits.cxx,1.12,1.13 credits.hxx,1.9,1.10 pingu_action_factory.cxx,1.9,1.10 pingu_action_factory.hxx,1.8,1.9 pingus_main.cxx,1.35,1.36 pingus_menu_manager.cxx,1.16,1.17 pingus_menu_manager.hxx,1.15,1.16 screen_manager.cxx,1.25,1.26 screen_manager.hxx,1.14,1.15
- Index(es):