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
|
/**
* @file controller_font_game.h
* @brief Handle mobile characters used for "LEVEL n COMPLETED"
* @date 2007-10-31
* @copyright 1991-2014 TLK Games
* @author Bruno Ethvignot
* @version $Revision: 24 $
*/
/*
* copyright (c) 1991-2014 TLK Games all rights reserved
* $Id: controller_font_game.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_FONT_GAME__
#define __CONTROLLER_FONT_GAME__
class controller_font_game;
#include "../include/objects_list.h"
#include "../include/sprite_font_game.h"
class controller_font_game:public objects_list < sprite_font_game, controller_font_game >
{
private:
/** Number of chars in the first string ("LEVEL n") */
Uint32 size_of_line_1;
/** Number of chars in the second string ("COMPLETED") */
Uint32 size_of_line_2;
/** Number total of chars both in the first and second string */
Uint32 total_size;
/** Screen width in pixels 256/512 pixels */
Uint32 horizontal_length;
/** Horizontal offet 0 or 32/64 pixels */
Uint32 horizontal_offset;
static char ze_bobText[];
static char ze_endText[];
public:
controller_font_game ();
~controller_font_game ();
void initialize (Uint32 level, Uint32 offset = 0);
void move ();
void enable ();
private:
Uint32 set_start_values (Uint32 n, Uint32 a, Uint32 j, Sint32 y,
Uint32 i3, Sint32 y3);
};
#endif
|