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
|
//*****************************************************************************
// copyright (c) 1991-2004 TLK Games all rights reserved
//-----------------------------------------------------------------------------
// file : "level_data.cc"
// created : 2004-04-06
// updates : 2004-06-13
// functions : manage levels data
//-----------------------------------------------------------------------------
// This program 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 2 of the License, or (at your option) any later
// version.
//
// This program 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., 59 Temple
// Place - Suite 330, Boston, MA 02111-1307, USA.
//*****************************************************************************
#ifndef __LEVEL_DATA__
#define __LEVEL_DATA__
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class level_data;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include "../include/mentatCode.h"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) (-: (-: (-: (-: (-: (-: (-: (-: (-:
// Description des tableaux
// :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) (-: (-: (-: (-: (-: (-: (-: (-: (-:
typedef struct
{
Sint16 level_type; // 0 = bricks level
Sint16 atom1Count; // Temps appartion Atom 1
Sint16 atom2Count; // Temps appartion Atom 2
Sint16 atom3Count; // Temps appartion Atom 3
Sint16 atom4Count; // Temps appartion Atom 4
Sint16 apparition; // Temps de reappartion des Atoms
Sint16 resistance; // Resistance des atoms
Sint16 malusCount; // Frequence d'appartion des malus
Sint16 monayCount; // Frequence d'appartion des capsules
const Sint16* malusListe; // pointreur sur la liste des malus
Sint16 speedBall1; // pointeur sur la premiere table de vitesse
Sint16 speedCount; // Temps avant l'acceleration de la balle
Sint16 startCount; // Temps avant que la balle ne parte
Sint16 glue_count; // Temps que dure la colle
Sint16 tilt_count; // Temps avant que le tilt soit possible
}
amigaLevel;
// :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) (-: (-: (-: (-: (-: (-: (-: (-: (-:
// Description des Gardiens
// :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) (-: (-: (-: (-: (-: (-: (-: (-: (-:
typedef struct
{
Sint16 level_type; // 1 = guard level
Sint16 speedBall1; // Pointeur sur la table des vitesses
Sint16 startCount; // Temps avant que la balle parte
Sint16 tilt_count; // Temps avant d'autoriser le tilt
Sint16 scrolCount; // Temps minimum avant le defilement
Sint16 scrollType; // type of background scrolling
Sint16 malusCount; // Frequence des gadgets
const Sint16* malusListe; // Table des gagdets
}
atariLevel;
// definition of the class
class level_data:public virtual mentatCode
{
public:
static const Uint32 NUMOFAREAS = 5;
static const Uint32 NUMOFLEVEL = 12;
public:
level_data();
~level_data();
const amigaLevel* bricklevel(Uint32, Uint32);
const atariLevel* guardlevel(Uint32, Uint32);
private:
static const Sint16 zeCourseXX[];
static const Sint16 zeCourse10[];
static const Sint16 zeCourse11[];
static const Sint16 zeCourse12[];
static const Sint16 zeCourse20[];
static const Sint16 zeCourse30[];
static const Sint16 zeCourse40[];
static const Sint16 zeCourse50[];
static const Sint16 zeCourse55[];
static const amigaLevel amigaTab10;
static const amigaLevel amigaTab11;
static const amigaLevel amigaTab12;
static const amigaLevel amigaTab20;
static const amigaLevel amigaTab30;
static const amigaLevel amigaTab40;
static const amigaLevel amigaTab50;
static const amigaLevel amigaTab55;
static const atariLevel atariTab00;
static const atariLevel atariTab04;
static const atariLevel atariTab08;
static const atariLevel atariTab12;
static const atariLevel atariTab16;
static const atariLevel atariTab20;
static const atariLevel atariTab24;
static const atariLevel atariTab28;
static const atariLevel atariTab32;
static const atariLevel atariTab36;
static const atariLevel atariTab40;
static const amigaLevel* giga_amiga[];
};
#endif
|