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
|
/**
* @file controller_bullets.h
* @brief Bullets controller
* @date 2007-02-19
* @copyright 1991-2007 TLK Games
* @author Bruno Ethvignot
* @version $Revision: 1.5 $
*/
/*
* copyright (c) 1991-2007 TLK Games all rights reserved
* $Id: controller_bullets.h,v 1.5 2007/09/12 06:32:48 gurumeditation Exp $
*
* 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_BULLETS__
#define __CONTROLLER_BULLETS__
class controller_bullets;
#include "../include/list_sprites.h"
#include "../include/sprite_bullet.h"
#include "../include/objects_list.h"
#include "../include/sprite_guardian.h"
class controller_bullets:public objects_list < sprite_bullet, controller_bullets >
{
friend class controller_guardians;
private:
static const Sint16 tir01_posi[62];
static const Sint16 tir02_posi[60];
static const Sint16 tir04_posi[14];
static const Sint16 tir10_posi[12];
static const Sint16 fire_sinus[60];
public:
controller_bullets ();
~controller_bullets ();
void move ();
void play_animation_loop ();
void check_paddle_collisions ();
sprite_bullet *get_last_bullet ();
void fire (Uint32 fire_id, sprite_guardian * guardian);
private:
void init_fire_01 (sprite_guardian * pgard);
void init_fire_02 (sprite_guardian * pgard);
void init_fire_03 (sprite_guardian * pgard);
void init_fire_04 (sprite_guardian * pgard);
void init_fire_05 (sprite_guardian * pgard);
void init_fire_06 (sprite_guardian * pgard);
void init_fire_07 (sprite_guardian * pgard);
void init_fire_08 (sprite_guardian * pgard);
void init_fire_09 (sprite_guardian * pgard);
void init_fire_10 (sprite_guardian * pgard);
void init_fire_11 (sprite_guardian * pgard);
};
#endif
|