Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * OpenTyrian: A modern cross-platform port of Tyrian
  3.  * Copyright (C) 2007-2009  The OpenTyrian Development Team
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License
  7.  * as published by the Free Software Foundation; either version 2
  8.  * of the License, or (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  18.  */
  19. #ifndef TYRIAN2_H
  20. #define TYRIAN2_H
  21.  
  22. #include "opentyr.h"
  23.  
  24. #include "varz.h"
  25. #include "helptext.h"
  26.  
  27. void intro_logos( void );
  28.  
  29. typedef struct
  30. {
  31.         Uint8 link_num;
  32.         Uint8 armor;
  33.         Uint8 color;
  34. }
  35. boss_bar_t;
  36.  
  37. extern boss_bar_t boss_bar[2];
  38.  
  39. extern char tempStr[31];
  40. extern JE_byte itemAvail[9][10], itemAvailMax[9];
  41.  
  42. void JE_createNewEventEnemy( JE_byte enemytypeofs, JE_word enemyoffset, Sint16 uniqueShapeTableI );
  43.  
  44. void JE_doNetwork( void );
  45.  
  46. uint JE_makeEnemy( struct JE_SingleEnemyType *enemy, Uint16 eDatI, Sint16 uniqueShapeTableI );
  47.  
  48. void JE_eventJump( JE_word jump );
  49.  
  50. void JE_whoa( void );
  51.  
  52. void JE_barX ( JE_word x1, JE_word y1, JE_word x2, JE_word y2, JE_byte col );
  53.  
  54. Sint16 JE_newEnemy( int enemyOffset, Uint16 eDatI, Sint16 uniqueShapeTableI );
  55. void JE_drawEnemy( int enemyOffset );
  56. void JE_starShowVGA( void );
  57.  
  58. void JE_main( void );
  59. void JE_loadMap( void );
  60. bool JE_titleScreen( JE_boolean animate );
  61. void JE_readTextSync( void );
  62. void JE_displayText( void );
  63.  
  64. bool JE_searchFor( JE_byte PLType, JE_byte* out_index );
  65. void JE_eventSystem( void );
  66.  
  67. void draw_boss_bar( void );
  68.  
  69. #endif /* TYRIAN2_H */
  70.  
  71.