3 * Iter Vehemens ad Necem (IVAN)
4 * Copyright (C) Timo Kiviluoto
5 * Released under the GNU General
8 * See LICENSING which should be included
9 * along with this file for more details
15 #include "ivancommon.h"
34 truth
PrepareLevel (int Index
, truth Visual
=true); // returns whether the level has been visited before
35 void SaveLevel (cfestring
&SaveName
, int Number
, truth DeleteAfterwards
=true);
36 level
*LoadLevel (cfestring
&SaveName
, int Number
);
37 inline level
*GetLevel (int I
) const { return Level
[I
]; }
38 int GetLevels () const;
39 void Save (outputfile
&SaveFile
) const;
40 void Load (inputfile
&SaveFile
);
41 inline void SetIndex (int What
) { Index
= What
; }
42 inline int GetIndex () const { return Index
; }
43 const levelscript
*GetLevelScript (int I
);
44 v2
GetWorldMapPos () { return WorldMapPos
; }
45 inline void SetWorldMapPos (v2 What
) { WorldMapPos
= What
; }
46 festring
GetLevelDescription (int I
);
47 festring
GetShortLevelDescription (int I
);
48 level
*LoadLevel (inputfile
&SaveFile
, int Number
);
49 inline truth
IsGenerated (int I
) const { return Generated
[I
]; }
50 inline void SetIsGenerated (int I
, truth What
) { Generated
[I
] = What
; }
51 int GetLevelTeleportDestination (int From
) const;
57 const dungeonscript
*DungeonScript
;
65 outputfile
&operator << (outputfile
&SaveFile
, const dungeon
*Dungeon
);
66 inputfile
&operator >> (inputfile
&SaveFile
, dungeon
*&Dungeon
);