File: scenes.h

package info (click to toggle)
kobodeluxe 0.4pre9-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,752 kB
  • ctags: 3,725
  • sloc: ansic: 16,746; cpp: 14,555; sh: 3,141; makefile: 157
file content (60 lines) | stat: -rw-r--r-- 1,502 bytes parent folder | download | duplicates (2)
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

/*
 * XKOBO, a video-oriented game
 * Copyright (C) 1995,1996  Akira Higuchi
 *     a-higuti@math.hokudai.ac.jp
 * 
 * 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.,
 * 675 Mass Ave, Cambridge, MA 02139, USA.
 * 
 */

#ifndef XKOBO_H_SCENES
#define XKOBO_H_SCENES

#include "config.h"
#include "enemies.h"

#define SCENE_ENEMY_MAX   20
#define SCENE_BASE_MAX    40

typedef struct {
    const enemy_kind *kind;
    int num;
    int speed;
} enemy_set;

typedef struct {
    int x, y, h, v;
} _base;

typedef const struct _scene_struct { /* name added for gcc 4.0 -- JEH */
    int ratio;
    int startx;
    int starty;
    const enemy_kind *ek1;
    int ek1_interval;
    const enemy_kind *ek2;
    int ek2_interval;
    
    int enemy_max;
    enemy_set enemy[SCENE_ENEMY_MAX];
    
    int base_max;
    _base base[SCENE_BASE_MAX];
} _scene;

extern _scene scene[];

#endif // XKOBO_H_SCENES