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_projectiles.h
* @brief Projectiles controller
* @date 2007-10-26
* @copyright 1991-2014 TLK Games
* @author Bruno Ethvignot
* @version $Revision: 24 $
*/
/*
* copyright (c) 1991-2014 TLK Games all rights reserved
* $Id: controller_projectiles.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_PROJECTILES__
#define __CONTROLLER_PROJECTILES__
class controller_projectiles;
#include "../include/objects_list.h"
#include "../include/handler_display.h"
#include "../include/right_panel_score.h"
#include "../include/sprite_projectile.h"
#include "../include/sprite_paddle.h"
class controller_projectiles:public objects_list < sprite_projectile, controller_projectiles >
{
private:
static const Uint32 MAX_OF_PROJECTILES = 7;
static const Uint32 SIZE_OF_PROJECTILE = 10;
static const Sint16 circular_sin_640[];
static const Sint16 circular_sin_320[];
private:
sprite_paddle * gun_paddle;
Sint32 countTempo;
Uint32 paddle_length;
const Sint16 *circular_sin;
public:
controller_projectiles ();
~controller_projectiles ();
void create_projectiles_list (sprite_paddle * paddle);
void disponible ();
void fire ();
void init_type1 ();
void init_type2 ();
void init_type3 ();
void init_type4 ();
void init_type5 ();
void init_type6 ();
void init_type7 ();
void move ();
void move_type1 ();
void move_type2 ();
void move_type3 ();
void move_type4 ();
void move_type5 ();
void move_type6 ();
void move_type7 ();
void set_fire_1 ();
void set_fire_2 ();
};
#endif
|