29 |
{ |
{ |
30 |
enum Direction {NODIR, NORTH, EAST, SOUTH, WEST}; |
enum Direction {NODIR, NORTH, EAST, SOUTH, WEST}; |
31 |
|
|
32 |
extern int ConserveLevel; |
void AddLevelPack (const char *init_file, const char *name); |
33 |
|
|
34 |
void ClearLevelList(); |
extern int ConserveLevel; |
|
void AddLevel(const char *filename, const char *name); |
|
35 |
|
|
36 |
Surface *GetImage(const char *name); |
Surface *GetImage(const char *name); |
37 |
Surface *LoadImage(const char *name); |
Surface *LoadImage(const char *name); |
52 |
|
|
53 |
module world |
module world |
54 |
{ |
{ |
55 |
|
class Object; |
56 |
|
class Floor : public Object {}; |
57 |
|
class Item : public Object {}; |
58 |
|
class Stone : public Object {}; |
59 |
|
|
60 |
|
Object *MakeObject(const char *kind); |
61 |
|
Floor *MakeFloor(const char *kind); |
62 |
|
Item *MakeItem(const char *kind); |
63 |
|
Stone *MakeStone(const char *kind); |
64 |
|
|
65 |
|
Object *GetNamedObject(const char *name); |
66 |
|
// void SetFloor( |
67 |
|
|
68 |
void Create(int w, int h); |
void Create(int w, int h); |
69 |
void DefineSimpleStone(const char *kind, const char *sound); |
void DefineSimpleStone(const char *kind, const char *sound); |
70 |
void DefineSimpleFloor(const char *kind, |
void DefineSimpleFloor(const char *kind, |
137 |
extern int FullScreen; |
extern int FullScreen; |
138 |
extern int UseAlpha; |
extern int UseAlpha; |
139 |
|
|
140 |
|
struct LevelStatus { |
141 |
|
LevelStatus(int easy=-1, int hard=-1, int fin=0); |
142 |
|
~LevelStatus(); |
143 |
|
}; |
144 |
|
void SetLevelStatus(const char *levelpack, |
145 |
|
const char *levelname, |
146 |
|
const LevelStatus &stat); |
147 |
|
|
148 |
|
|
149 |
void SetVolume(double vol); |
void SetVolume(double vol); |
150 |
} |
} |