1 /**
2  * @file controller_font_menu.h
3  * @brief Controller of the menu scroll text
4  * @date 2007-11-18
5  * @copyright 1991-2014 TLK Games
6  * @author Bruno Ethvignot
7  * @version $Revision: 24 $
8  */
9 /*
10  * copyright (c) 1991-2014 TLK Games all rights reserved
11  * $Id: controller_font_menu.h 24 2014-09-28 15:30:04Z bruno.ethvignot@gmail.com $
12  *
13  * TecnoballZ is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * TecnoballZ is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26  * MA  02110-1301, USA.
27  */
28 #ifndef __CONTROLLER__FONTS_MENU__
29 #define __CONTROLLER__FONTS_MENU__
30 
31 #include "../include/objects_list.h"
32 #include "../include/sprite_font_menu.h"
33 class controller_font_menu:public objects_list < sprite_font_menu, controller_font_menu >
34 {
35 private:
36   /** Numbers maximum characters */
37   static const Uint32 MAX_OF_FONTS = 14;
38   static char asciiToBob[128];
39 
40 private:
41   sprite_font_menu * characters_list[MAX_OF_FONTS + 2];
42   sprite_font_menu *objectLeft;
43   sprite_font_menu *objectRigh;
44   sprite_font_menu **object_ptr;
45   char *scroll_ptr;
46   Sint32 offset_xx1;
47   Sint32 offset_yy1;
48   char* scrollText;
49   char** scrolltexts;
50 
51 public:
52     controller_font_menu ();
53    ~controller_font_menu ();
54   void create_fontes_list ();
55   void move_chars ();
56 
57 };
58 #endif
59