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

  1. /***************************************************************************
  2.  * spinbox.h  -  header for the corresponding cpp file
  3.  *
  4.  * Copyright (C) 2003 - 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_SPINBOX_H
  17. #define SMC_SPINBOX_H
  18.  
  19. #include "../core/globals.h"
  20. #include "../objects/box.h"
  21.  
  22. /* *** *** *** *** *** *** *** *** cSpinBox *** *** *** *** *** *** *** *** *** */
  23.  
  24. class cSpinBox : public cBaseBox
  25. {
  26. public:
  27.     // constructor
  28.     cSpinBox( float x, float y );
  29.     // create from stream
  30.     cSpinBox( CEGUI::XMLAttributes &attributes );
  31.     // destructor
  32.     virtual ~cSpinBox( void );
  33.  
  34.     // init defaults
  35.     void Init( void );
  36.  
  37.     // copy
  38.     virtual cSpinBox *Copy( void );
  39.  
  40.     // create from stream
  41.     virtual void Create_from_Stream( CEGUI::XMLAttributes &attributes );
  42.     // save to stream
  43.     virtual void Save_to_Stream( ofstream &file );
  44.  
  45.     // Activate the Spinning
  46.     virtual void Activate( void );
  47.     // Stop the Spinning
  48.     void Stop( void );
  49.     // update
  50.     virtual void Update( void );
  51.  
  52.     // if update is valid for the current state
  53.     virtual bool Is_Update_Valid( void );
  54.  
  55.     // ignore onground check
  56.     virtual void Check_on_Ground( void ) {};
  57.  
  58.     // spin counter
  59.     float spin_counter;
  60.  
  61.     // if spinning
  62.     bool spin;
  63. };
  64.  
  65. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  66.  
  67. #endif
  68.