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

  1. /***************************************************************************
  2.  * level_editor.h  -  header for the corresponding cpp file
  3.  *
  4.  * Copyright (C) 2006 - 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_LEVEL_EDITOR_H
  17. #define SMC_LEVEL_EDITOR_H
  18.  
  19. #include "../core/editor.h"
  20. #include "../level/level_settings.h"
  21.  
  22. /* *** *** *** *** *** *** *** cEditor_Level *** *** *** *** *** *** *** *** *** *** */
  23.  
  24. class cEditor_Level : public cEditor
  25. {
  26. public:
  27.     cEditor_Level( void );
  28.     virtual ~cEditor_Level( void );
  29.  
  30.     // Initialize
  31.     virtual void Init( void );
  32.  
  33.     // Enable
  34.     virtual void Enable( void );
  35.     /* Disable
  36.      * native_mode : if unset the current game mode isn't altered
  37.      */
  38.     virtual void Disable( bool native_mode = 0 );
  39.  
  40.     /* handle key down event
  41.      * returns true if the key was processed
  42.     */
  43.     virtual bool Key_Down( SDLKey key );
  44.  
  45.     // Set Active Menu Entry
  46.     virtual void Activate_Menu( cEditor_Menu_Object *entry );
  47.  
  48.     // #### LevelEditor Functions
  49.     /* switch the object state of the given object
  50.      * returns true if successful
  51.     */
  52.     bool Switch_Object_State( cSprite *obj );
  53.  
  54.     // Menu functions
  55.     virtual bool Function_New( void );
  56.     virtual void Function_Load( void );
  57.     virtual void Function_Save( bool with_dialog = 0 );
  58.     virtual void Function_Save_as( void );
  59.     virtual void Function_Delete( void );
  60.     virtual void Function_Reload( void );
  61.     virtual void Function_Clear( void );
  62.     virtual void Function_Settings( void );
  63.  
  64.     // Level Settings
  65.     cLevel_Settings *pSettings;
  66. };
  67.  
  68. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  69.  
  70. // The Level Editor
  71. extern cEditor_Level *pLevel_Editor;
  72.  
  73. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  74.  
  75. #endif
  76.