/[enigma]/enigma/enigma-lua.pkg
ViewVC logotype

Diff of /enigma/enigma-lua.pkg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dheck, Sun Nov 3 14:17:20 2002 UTC revision 1.9 by dheck, Wed Dec 4 19:52:03 2002 UTC
# Line 29  module enigma Line 29  module enigma
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);
# Line 53  $using namespace world; Line 52  $using namespace world;
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,
# Line 125  module options Line 137  module options
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  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26