1 #include <aros/oldprograms.h>
5 #define setmem(ptr,size,fill) memset(ptr,fill,size)
10 * Source machine generated by GadToolsBox V1.4
11 * which is (c) Copyright 1991,92 Jaba Development
15 #include <exec/types.h>
16 #include <intuition/intuition.h>
17 #include <intuition/classes.h>
18 #include <intuition/classusr.h>
19 #include <intuition/imageclass.h>
20 #include <intuition/gadgetclass.h>
21 #include <workbench/workbench.h>
22 #include <libraries/gadtools.h>
23 #include <libraries/asl.h>
24 #include <graphics/displayinfo.h>
25 #include <graphics/gfxbase.h>
26 #include <proto/exec.h>
27 #include <proto/intuition.h>
28 #include <proto/gadtools.h>
29 #include <proto/graphics.h>
30 #include <proto/utility.h>
31 #include <proto/dos.h>
32 #include <proto/asl.h>
33 #include <proto/icon.h>
36 #include <proto/dos.h>
38 #include <pragmas/dos_pragmas.h>
39 #include <pragmas/exec_pragmas.h>
40 #include <pragmas/intuition_pragmas.h>
41 #include <pragmas/gadtools_pragmas.h>
42 #include <pragmas/graphics_pragmas.h>
43 #include <pragmas/utility_pragmas.h>
44 #include <pragmas/asl_pragmas.h>
45 #include <pragmas/icon_pragmas.h>
47 #define GetString( g ) ((( struct StringInfo * )g->SpecialInfo )->Buffer )
48 #define GetNumber( g ) ((( struct StringInfo * )g->SpecialInfo )->LongInt )
62 #define Project0_CNT 5
76 #define SAVE_DEF_ENVARC 2
77 #define SAVE_DEF_ENV 3
79 extern struct Screen
*Scr
;
80 extern UBYTE
*PubScreenName
;
81 extern APTR VisualInfo
;
82 extern struct Window
*Project0Wnd
;
83 extern struct Menu
*Project0Menus
;
84 extern struct Gadget
*Project0GList
;
85 extern struct IntuiMessage Project0Msg
;
86 extern struct Gadget
*Project0Gadgets
[5];
87 extern UWORD Project0Left
;
88 extern UWORD Project0Top
;
89 extern UWORD Project0Width
;
90 extern UWORD Project0Height
;
91 extern UBYTE
*Project0Wdt
;
92 extern struct TextAttr
*Font
, Attr
;
93 extern UWORD FontX
, FontY
;
94 extern UWORD OffX
, OffY
;
95 extern struct GfxBase
*GfxBase
;
96 extern UBYTE
*tiles0Labels
[];
97 extern UBYTE
*shuffle0Labels
[];
98 extern UWORD Project0GTypes
[];
99 extern struct NewGadget Project0NGad
[];
100 extern IPTR Project0GTags
[];
101 extern struct NewMenu Project0NewMenu
[];
104 extern struct GfxBase
*GfxBase
;
105 extern struct IntuitionBase
*IntuitionBase
;
106 extern struct Library
*GadToolsBase
;
107 extern struct Library
*AslBase
;
108 extern struct Library
*IconBase
;
109 extern __far ULONG RangeSeed
;
135 struct DrawInfo
*dri
;
142 UWORD solved
[MAX_XY
][MAX_XY
];
143 UWORD current
[MAX_XY
][MAX_XY
];
148 struct ColorMap
*oldcmap
;
160 struct WBStartup
*msg
;
163 extern struct shu_data info
;
164 extern struct Border b1
,b2
;
165 extern WORD bp1
[],bp2
[];
168 extern int startClicked( void );
169 extern int tilesClicked( void );
170 extern int shuffleClicked( void );
171 extern int numbersClicked( void );
172 extern int modeClicked( void );
173 extern int Project0loadconfig( void );
174 extern int Project0saveconfig( void );
175 extern int Project0saveasconfig( void );
176 extern int Project0savedefault( void );
177 extern int Project0about( void );
178 extern int Project0quit( void );
179 extern int Project0Icon( void );
182 extern int SetupScreen( void );
183 extern void CloseDownScreen( void );
184 extern int HandleProject0IDCMP( void );
185 extern int Project0CloseWindow( void );
186 extern int OpenProject0Window( void );
187 extern void CloseProject0Window( void );
188 extern int Project0VanillaKey( void );
191 #include <proto/alib.h>
193 ULONG __stdargs
FastRand( unsigned long seed
);
194 UWORD __stdargs
RangeRand( unsigned long maxValue
);
196 int main(int argc
, char **argv
);
197 extern int MakeScWd(void);
198 extern void FreeScWd(void);
199 extern void CopyWBGfx(void);
200 extern struct Screen
*CloneScreen(struct Screen
*scr
);
201 extern struct Window
*MakeWd(struct Screen
*scr
);
202 extern void Play(void);
203 extern void SetUpValues(void);
204 extern void SliceBoard(void);
205 extern void shuffle(UWORD howmuch
);
206 extern void MoveRect(UWORD to
);
207 extern int _solved(void);
208 extern void swap(UWORD to
);
209 void DisplayReq(struct IntuiText
*text
);
210 extern void save_config(ULONG mode
);
211 extern void load_config(UBYTE
*name
);