home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 February / maximum-cd-2009-02.iso / DiscContents / SMC_1.6_win32.exe / src / overworld / world_editor.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-07-01  |  1.9 KB  |  65 lines

  1. /***************************************************************************
  2.  * world_editor.h  -  header for the corresponding cpp file
  3.  *
  4.  * Copyright (C) 2007 - 2008 Florian Richter
  5.  ***************************************************************************/
  6. /*
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 3 of the License, or
  10.    (at your option) any later version.
  11.    
  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  14. */
  15.  
  16. #ifndef SMC_WORLD_EDITOR_H
  17. #define SMC_WORLD_EDITOR_H
  18.  
  19. #include "../core/editor.h"
  20.  
  21. /* *** *** *** *** *** *** *** cEditor_World *** *** *** *** *** *** *** *** *** *** */
  22.  
  23. class cEditor_World : public cEditor
  24. {
  25. public:
  26.     cEditor_World( void );
  27.     virtual ~cEditor_World( void );
  28.  
  29.     // Initialize
  30.     virtual void Init( void );
  31.  
  32.     // Enable
  33.     virtual void Enable( void );
  34.     /* Disable
  35.      * native_mode : if unset the current game mode isn't altered
  36.      */
  37.     virtual void Disable( bool native_mode = 0 );
  38.  
  39.     /* handle key down event
  40.      * returns true if the key was processed
  41.     */
  42.     virtual bool Key_Down( SDLKey key );
  43.  
  44.     // Set Active Menu Entry
  45.     virtual void Activate_Menu( cEditor_Menu_Object *entry );
  46.  
  47.     // Menu functions
  48.     virtual bool Function_New( void );
  49.     virtual void Function_Load( void );
  50.     virtual void Function_Save( bool with_dialog = 0 );
  51.     //virtual void Function_Save_as( void );
  52.     virtual void Function_Reload( void );
  53.     virtual void Function_Clear( void );
  54.     //void Function_Settings( void );
  55. };
  56.  
  57. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  58.  
  59. // The World Editor
  60. extern cEditor_World *pWorld_Editor;
  61.  
  62. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  63.  
  64. #endif
  65.