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

  1. /***************************************************************************
  2.  * star.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_STAR_H
  17. #define SMC_STAR_H
  18.  
  19. #include "../core/globals.h"
  20. #include "../objects/powerup.h"
  21.  
  22. /* *** *** *** *** *** Jumping Star *** *** *** *** *** *** *** *** *** *** *** *** */
  23.  
  24. class cjStar : public cPowerUp
  25. {
  26. public:
  27.     // constructor
  28.     cjStar( float x, float y );
  29.     // destructor
  30.     virtual ~cjStar( void );
  31.     
  32.     // copy
  33.     virtual cjStar *Copy( void );
  34.  
  35.     // Activate the star
  36.     void Activate( void );
  37.  
  38.     // update the Star
  39.     virtual void Update( void );
  40.     // draw the Star
  41.     virtual void Draw( cSurfaceRequest *request = NULL );
  42.  
  43.     // Adds Star Particles
  44.     void Generate_Particles( float x = 0, float y = 0, unsigned int quota = 2 );
  45.  
  46.     // collision with massive
  47.     virtual void Handle_Collision_Massive( cObjectCollision *collision );
  48.  
  49.     // small stars animation counter
  50.     float anim_counter;
  51.  
  52.     // glim animation modifier
  53.     bool glim_mod;
  54.     // glim animation counter
  55.     float glim_counter;
  56. };
  57.  
  58. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  59.  
  60. #endif
  61.