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

  1. /***************************************************************************
  2.  * enemystopper.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_ENEMYSTOPPER_H
  17. #define SMC_ENEMYSTOPPER_H
  18.  
  19. #include "../core/globals.h"
  20. #include "../objects/objectsprite.h"
  21.  
  22. /* *** *** *** *** *** cEnemyStopper *** *** *** *** *** *** *** *** *** *** *** *** */
  23.  
  24. class cEnemyStopper : public cImageObjectSprite
  25. {
  26. public:
  27.     // constructor
  28.     cEnemyStopper( float x, float y );
  29.     // create from stream
  30.     cEnemyStopper( CEGUI::XMLAttributes &attributes );
  31.     // destructor
  32.     virtual ~cEnemyStopper( void );
  33.     
  34.     // init defaults
  35.     void Init( void );
  36.     // copy
  37.     virtual cEnemyStopper *Copy( void );
  38.  
  39.     // create from stream
  40.     virtual void Create_from_Stream( CEGUI::XMLAttributes &attributes );
  41.     // save to stream
  42.     virtual void Save_to_Stream( ofstream &file );
  43.  
  44.     // draw
  45.     virtual void Draw( cSurfaceRequest *request = NULL );
  46.  
  47.     // if draw is valid for the current state and position
  48.     virtual bool Is_Draw_Valid( void );
  49.  
  50.     // editor color
  51.     Color editor_color;
  52. };
  53.  
  54. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  55.  
  56. #endif
  57.