*                        FUNCTION DEFINITIONS LIST
*
*                             Date: 04.11.96
*
*                             "games.library"
*
##base _GMSBase
##bias 30
##public
*----------------------------------------
* Standard functions                     
*----------------------------------------
Init_GPI(GPI_ID)(d0)
Remove_GPI(GPI_ID)(d0)
InitJoyPorts()()
Read_Mouse(PortName)(d0)
Read_JoyPort(Portname,ReturnType)(d0/d1)
Read_JoyStick(PortName)(d0)
Read_JoyPad(PortName)(d0)
Read_SegaPad(PortName)(d0)
Read_Analogue(PortName)(d0)
Read_Key(KeyStruct)(a1)
FastRandom(range)(d1)
SlowRandom(range)(d1)
Wait_LMB()()
Wait_Fire(PortName)(d0)
Wait_Time(MicroSeconds)(d0)
Add_InputHandler()()
Rem_InputHandler()()
Add_Interrupt(Interrupt,IntNum,IntPri)(a0/d0/d1)
Rem_Interrupt(IntBase)(a0)
SmartLoad(FileName,Destination,Password,MemType)(a0/a1/d0/d1)
QuickLoad(FileName,Destination,MemType)(a0/a1/d0)
SmartUnpack(Source,Destination,Password,MemType)(a0/a1/d0/d1)
SmartSave(FileName,Source,SrcLength)(a0,a1,d0)
SetUserPrefs(PrefsName)(a0)
GetPicInfo(Source,Picture)(a0/a1)
UnpackPic(Source,Picture)(a0/a1)
LoadPic(Picture)(a1)
AllocMemBlock(Size,MemType)(d0/d1)
FreeMemBlock(MemBlock)(d0)
FreePic(Picture)(a1)
##private
gamesPrivate1()()
gamesPrivate2()()
gamesPrivate3()()
gamesPrivate4()()
gamesPrivate5()()
gamesPrivate6()()
gamesPrivate7()()
gamesPrivate8()()
gamesPrivate9()()
gamesPrivate10()()
gamesPrivate11()()
gamesPrivate12()()
gamesPrivate13()()
gamesPrivate14()()
gamesPrivate15()()
gamesPrivate16()()
gamesPrivate17()()
gamesPrivate18()()
gamesPrivate19()()
gamesPrivate20()()
gamesPrivate21()()
gamesPrivate22()()
gamesPrivate23()()
gamesPrivate24()()
gamesPrivate25()()
gamesPrivate26()()
gamesPrivate27()()
gamesPrivate28()()
##public
*----------------------------------------
* Screens.GPI general functions.         
*----------------------------------------
Add_Screen(GameScreen)(a0)
Delete_Screen(GameScreen)(a0)
Show_Screen(GameScreen)(a0)
Hide_Screen()()
ReturnToOS()()
AutoOSReturn()()
SwapBuffers(GameScreen)(a0)
Wait_VBL()()
Wait_OSVBL()()
Wait_ORVBL()()
Wait_RastLine(LinePosition)(d0)
Refresh_Screen(GameScreen)(a0)
Remake_Screen(GameScreen)(a0)
Move_Picture(GameScreen)(a0)
Reset_Picture(GameScreen)(a0)
UpdatePalette(GameScreen)(a0)
PaletteMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcPalette,DestPalette)(a0/d0/d1/d3/d4/a1/a2)
PaletteToColour(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
ColourMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcColour,DestColour)(a0/d0/d1/d3/d4/d2/d5)
ColourToPalette(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
Change_Colours(GameScreen,Colours,StartColour,AmtColours)(a0/a1/d0/d1)
Blank_Colours(GameScreen)(a0)
Init_RasterList(GameScreen)(a0)
Update_RasterList(GameScreen)(a0)
Update_RasterCommand(GameScreen,Command)(a0/a2)
Update_RasterCommands(GameScreen,Command,Amount)(a0/a2/d0)
Update_RasterLines(GameScreen)(a0)
Remove_RasterList(GameScreen)(a0)
Hide_RasterList(GameScreen)(a0)
Show_RasterList(GameScreen)(a0)
Init_Sprite(GameScreen,Sprite)(a0/a1)
Update_Sprite(GameScreen,Sprite)(a0/a1)
Move_Sprite(GameScreen,Sprite)(a0/a1)
Hide_Sprite(GameScreen,SpriteNum)(a0/d0)
Update_SpriteList(SpriteList)(a0)
Hide_SpriteList(SpriteList)(a0)
Remove_AllSprites(GameScreen)(a0)
Return_AllSprites(GameScreen)(a0)
Free_Sprite(Sprite)(a1)
UpdateRGB12(GameScreen,Colour,RGB)(a0/d0/d1)
UpdateRGB24(GameScreen,Colour,RRGGBB)(a0/d0/d1)
##private
gamesPrivate32()()
gamesPrivate33()()
gamesPrivate34()()
gamesPrivate35()()
gamesPrivate36()()
gamesPrivate37()()
gamesPrivate38()()
gamesPrivate39()()
gamesPrivate40()()
gamesPrivate41()()
gamesPrivate42()()
gamesPrivate43()()
gamesPrivate44()()
gamesPrivate45()()
gamesPrivate46()()
gamesPrivate47()()
gamesPrivate48()()
gamesPrivate49()()
gamesPrivate50()()
gamesPrivate51()()
gamesPrivate52()()
gamesPrivate53()()
##public
*----------------------------------------
* Blitter.GPI                            
*----------------------------------------
AllocBlitter()()
FreeBlitter()()
Init_BOB(GameScreen,BOB)(a0/a1)
Free_BOB(BOB)(a1)
Draw_BOB(GameScreen,BOB)(a0/a1)
Draw_BOBList(GameScreen,BOBList)(a0/a1)
Clear_BOB(GameScreen,BOB)(a0/a1)
Draw_Line(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
CopyBuffer(GameScreen,SrcBuffer,DestBuffer)(a0/d0/d1)
ClrScreen(GameScreen,Buffer)(a0/d0) 
ClrArea(GameScreen,SX,SY,EX,EY)(a0/d0/d1/d2/d3)
Init_RestoreList(AmtBuffers,Entries)(d0/d1)
Free_RestoreList(RestoreList)(d0)
Reset_RestoreList(RestoreList)(a1)
Restore_List(GameScreen,RestoreList)(a0/a1)
Cleanup_RestoreList(GameScreen,RestoreList)(a0/a1)
Init_Map(GameScreen,Map)(a0/a1)
Draw_Map(GameScreen,Map)(a0/a1)
Draw_MapArea(GameScreen,Map)(a0/a1)
Draw_MapEdge(GameScreen,Map)(a0/a1)
Free_Map(Map)(a1)
Draw_Pixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
Draw_PixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
Draw_UCPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
Read_Pixel()()
Read_PixelList()()
Read_UCPixelList()()
##private
gamesPrivate60()()
gamesPrivate61()()
gamesPrivate62()()
gamesPrivate63()()
gamesPrivate64()()
gamesPrivate65()()
gamesPrivate66()()
gamesPrivate67()()
gamesPrivate68()()
gamesPrivate69()()
gamesPrivate70()()
gamesPrivate71()()
gamesPrivate72()()
gamesPrivate73()()
gamesPrivate74()()
gamesPrivate75()()
gamesPrivate76()()
gamesPrivate77()()
gamesPrivate78()()
gamesPrivate79()()
gamesPrivate80()()
gamesPrivate81()()
gamesPrivate82()()
gamesPrivate83()()
gamesPrivate84()()
gamesPrivate85()()
gamesPrivate86()()
gamesPrivate87()()
gamesPrivate88()()
gamesPrivate89()()
gamesPrivate90()()
gamesPrivate91()()
gamesPrivate92()()
gamesPrivate93()()
##public
*----------------------------------------
* Sound.GPI                              
*----------------------------------------
AllocAudio()()
FreeAudio()()
InitSound(Sound)(a0)
FreeSound(Sound)(a0)
CheckChannel(ChannelName)(d0)
PlaySound(Sound)(a0)
PlaySoundDAC1(Sound)(a0)
PlaySoundDAC2(Sound)(a0)
PlaySoundDAC3(Sound)(a0)
PlaySoundDAC4(Sound)(a0)
PlaySoundPri(Sound)(a0)
PlaySoundPriDAC1(Sound)(a0)
PlaySoundPriDAC2(Sound)(a0)
PlaySoundPriDAC3(Sound)(a0)
PlaySoundPriDAC4(Sound)(a0)
SetVolume(Channel,Volume)(d0/d1)
FadeVolume(Channel)(d0)
StopSound(Sound)(a0)
StopChannel(Channel)(d0)
InitMusic()()
PlayMusic()()
StopMusic()()
##end
