1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
/**
* @file controller_gigablitz.h
* @brief Gigablitz controller
* @date 2007-04-03
* @copyright 1991-2014 TLK Games
* @author Bruno Ethvignot
* @version $Revision: 24 $
*/
/*
* copyright (c) 1991-2014 TLK Games all rights reserved
* $Id: controller_gigablitz.h 24 2014-09-28 15:30:04Z bruno.ethvignot@gmail.com $
*
* TecnoballZ is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* TecnoballZ is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __CONTROLLER_GIGABLITZ__
#define __CONTROLLER_GIGABLITZ__
class controller_gigablitz;
#include "../include/sprite_gigablitz.h"
#include "../include/list_sprites.h"
#include "../include/right_panel_score.h"
#include "../include/handler_keyboard.h"
#include "../include/controller_viewfinders.h"
#include "../include/controller_projectiles.h"
#include "../include/handler_players.h"
#include "../include/supervisor_bricks_level.h"
#include "../include/objects_list.h"
#include "../include/controller_bricks.h"
#include "../include/controller_explosions.h"
class controller_gigablitz:public objects_list < sprite_gigablitz, controller_gigablitz >
{
friend class sprite_gigablitz;
private:
static const Uint32 MAX_OF_GIGABLITZ = 7;
static Uint32 numeroBOBs[MAX_OF_GIGABLITZ];
sprite_paddle *paddle_bottom;
sprite_paddle *paddle_top;
sprite_gigablitz *current_gigablitz;
Sint32 blitz_colx;
Sint32 gigablitz_xcoord;
/* Height of the gigablitz in pixels */
Uint32 gigablitz_height;
Sint32 bitz_ystop; //"gigablitz" Y max.
Sint32 bitz_maxiy; //
Sint32 bitz_miniy; //
Sint32 blitz_seta;
Uint32 num_of_bricks; //width of collison bricks in row
Uint32 blitz_xsin;
public:
controller_gigablitz ();
~controller_gigablitz ();
void create_gigablitz_sprites ();
void shoot_paddle ();
void run_in_bricks_levels ();
void collision1 ();
void run_in_guardians_level ();
bool shoot_guardian (Uint32 id, Sint32 xcoord, Sint32 ycoord,
Uint32 width);
bool is_enable ();
private:
void collision_with_paddle ();
};
#endif
|