1 |
//================================================== -*- Mode: C++ -*- |
//================================================== -*- Mode: C++ -*- |
2 |
// Copyright (C) 2002,2003 Daniel Heck |
// Copyright (C) 2002,2003 Daniel Heck |
3 |
// |
// |
4 |
// This program is free software; you can redistribute it and/or |
// This program is free software; you can redistribute it and/or |
5 |
// modify it under the terms of the GNU General Public License |
// modify it under the terms of the GNU General Public License |
6 |
// as published by the Free Software Foundation; either version 2 |
// as published by the Free Software Foundation; either version 2 |
7 |
// of the License, or (at your option) any later version. |
// of the License, or (at your option) any later version. |
8 |
// |
// |
9 |
// This program is distributed in the hope that it will be useful, |
// This program is distributed in the hope that it will be useful, |
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
// GNU General Public License for more details. |
// GNU General Public License for more details. |
13 |
// |
// |
14 |
// You should have received a copy of the GNU General Public License along |
// You should have received a copy of the GNU General Public License along |
15 |
// with this program; if not, write to the Free Software Foundation, Inc., |
// with this program; if not, write to the Free Software Foundation, Inc., |
16 |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
36 |
|
|
37 |
extern int ConserveLevel; |
extern int ConserveLevel; |
38 |
extern int Difficulty; |
extern int Difficulty; |
39 |
|
extern int ShowMoves; |
40 |
|
|
41 |
Surface *GetImage(const char *name); |
Surface *GetImage(const char *name); |
42 |
Surface *LoadImage(const char *name); |
Surface *LoadImage(const char *name); |
66 |
Floor *MakeFloor(const char *kind); |
Floor *MakeFloor(const char *kind); |
67 |
Item *MakeItem(const char *kind); |
Item *MakeItem(const char *kind); |
68 |
Stone *MakeStone(const char *kind); |
Stone *MakeStone(const char *kind); |
69 |
|
|
70 |
Object *GetNamedObject(const char *name); |
Object *GetNamedObject(const char *name); |
71 |
// void SetFloor( |
// void SetFloor( |
72 |
|
|
73 |
void Create(int w, int h); |
void Create(int w, int h); |
74 |
void DefineSimpleStone(const char *kind, const char *sound); |
void DefineSimpleStone(const char *kind, const char *sound); |
75 |
void DefineSimpleStoneHollow(const char *kind); |
void DefineSimpleStoneHollow(const char *kind); |
105 |
module display |
module display |
106 |
{ |
{ |
107 |
typedef int FollowMode; |
typedef int FollowMode; |
108 |
enum FollowMode { |
enum FollowMode { |
109 |
FOLLOW_SCROLLING, // Scroll the screen |
FOLLOW_SCROLLING, // Scroll the screen |
110 |
FOLLOW_SCREEN // Flip the screen region |
FOLLOW_SCREEN // Flip the screen region |
111 |
}; |
}; |
116 |
void DefineSubImage(const char *name, const char *fname, |
void DefineSubImage(const char *name, const char *fname, |
117 |
int xoff, int yoff, Rect r); |
int xoff, int yoff, Rect r); |
118 |
void DefineRandModel(const char *name, int n, const char *names[n]); |
void DefineRandModel(const char *name, int n, const char *names[n]); |
119 |
void DefineShadedModel(const char *name, const char *model, |
void DefineShadedModel(const char *name, const char *model, |
120 |
const char *shade); |
const char *shade); |
121 |
void DefineOverlayImage (const char *name, int n, |
void DefineOverlayImage (const char *name, int n, |
122 |
const char *images[n]); |
const char *images[n]); |
123 |
void DefineComposite (const char *name, |
void DefineComposite (const char *name, |
124 |
const char *bgname, |
const char *bgname, |
125 |
const char *fgname); |
const char *fgname); |
126 |
void DefineAnim (const char *name, bool loop_p); |
void DefineAnim (const char *name, bool loop_p); |