File: supervisor_bricks_level.h

package info (click to toggle)
tecnoballz 0.93.1-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,528 kB
  • sloc: cpp: 29,390; xml: 425; makefile: 301; ansic: 171; sh: 38
file content (133 lines) | stat: -rw-r--r-- 4,492 bytes parent folder | download | duplicates (5)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/** 
 * @file supervisor_bricks_level.h 
 * @brief Bricks levels supervisor 
 * @date 2007-10-17
 * @copyright 1991-2014 TLK Games
 * @author Bruno Ethvignot
 * @version $Revision: 24 $
 */
/* 
 * copyright (c) 1991-2014 TLK Games all rights reserved
 * $Id: supervisor_bricks_level.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 __SUPERVISOR_BRICKS_LEVEL__
#define __SUPERVISOR_BRICKS_LEVEL__

class supervisor_bricks_level;

#include "../include/handler_display.h"
#include "../include/handler_audio.h"
#include "../include/sprite_object.h"
#include "../include/sprite_wall.h"
#include "../include/bitmap_data.h"
#include "../include/list_sprites.h"
#include "../include/objects_list.h"
#include "../include/supervisor.h"
#include "../include/controller_ships.h"
#include "../include/sprite_ship.h"
#include "../include/handler_keyboard.h"
#include "../include/tiles_background.h"
#include "../include/controller_paddles.h"
#include "../include/controller_sides_bricks.h"
#include "../include/right_panel_score.h"
#include "../include/handler_display.h"
#include "../include/controller_ejectors.h"
#include "../include/controller_bricks.h"
#include "../include/controller_balls.h"
#include "../include/controller_moneys.h"
#include "../include/controller_capsules.h"
#include "../include/controller_gigablitz.h"
#include "../include/handler_players.h"
#include "../include/controller_font_game.h"
#include "../include/head_animation.h"
#include "../include/controller_indicators.h"
#include "../include/controller_game_over.h"
#include "../include/short_info_messages.h"
#include "../include/handler_levels.h"
#include "../include/controller_gems.h"
#include "../include/controller_viewfinders.h"
#include "../include/handler_popup_menu.h"
#include "../include/controller_magnetic_eyes.h"

class supervisor_bricks_level:public virtual supervisor
{
  friend class tiles_background;
  friend class controller_moneys;
  friend class controller_balls;
  friend class controller_paddles;
  friend class controller_capsules;
  friend class controller_font_game;
  friend class controller_ships;
  friend class sprite_paddle;

private:
  short_info_messages *info_messages;
  controller_indicators *player_indicators;
  controller_sides_bricks *sides_bricks;
  /** Head animation in the right score panel */
  head_animation *head_anim;
  controller_bricks *bricks;
  tiles_background *tiles_ground;
  controller_ejectors *ejectors_corners;
  controller_balls *balls;
  controller_viewfinders *viewfinders_paddles;
  controller_paddles *paddles;
  right_panel_score *panel_score;
  controller_ships *ships;
  controller_magnetic_eyes *magnetic_eyes;
  controller_moneys *money_capsules;
  controller_capsules *power_up_capsules;
  controller_gems *gem_stones;
  controller_font_game *font_game;
  controller_gigablitz *gigablitz;
  controller_game_over *game_over;
  sprite_wall *bottom_wall;
  sprite_object *money_indicator;
  handler_popup_menu *popup_menu;
  /** Area number from 1 to 2 */
  Sint32 area_number;
  /** Level number from 1 to 12 */
  Sint32 level_number;
  const bricks_level_desc *level_desc;
  //Sint32 next_level;
  /** Time delay before next level */
  Sint32 count_next;
  /** Counter used to handle the different phases of the game over */
  Sint32 gameover_counter;


#ifdef UNDER_DEVELOPMENT
  /** Key flag to switch to the next backgound */
  bool devel_keyx;
  /** Key flag to switch to the previous backgound */
  bool devel_keyw;
  Sint32 backgound_index;
#endif
public:
    supervisor_bricks_level ();
   ~supervisor_bricks_level ();
  void first_init ();
  Uint32 main_loop ();

private:
  void init_level ();
  void switch_background ();
  void draw_tilesmap();
  void initialize_background (Sint32 bkg_num = -1);
};
#endif