home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / misc / gms_dev.lha / GMS / Includes / fd / games_lib.fd
Encoding:
Amiga Function Description  |  1997-02-10  |  6.6 KB  |  239 lines

  1. *                        FUNCTION DEFINITIONS LIST
  2. *
  3. *                             Date: 01.02.97
  4. *
  5. *                             "games.library"
  6. *
  7. ##base _GMSBase
  8. ##bias 30
  9. ##public
  10. *----------------------------------------
  11. * Standard functions                     
  12. *----------------------------------------
  13. InitGPI(GPI_ID)(d0)
  14. RemoveGPI(GPI_ID)(d0)
  15. InitJoyPorts()()
  16. ReadMouse(PortName)(d0)
  17. ReadJoyPort(PortName,ReturnType)(d0/d1)
  18. ReadJoyStick(PortName)(d0)
  19. ReadJoyPad(PortName)(d0)
  20. ReadSegaPad(PortName)(d0)
  21. ReadAnalogue(PortName)(d0)
  22. ReadKey(KeyStruct)(a1)
  23. FastRandom(range)(d1)
  24. SlowRandom(range)(d1)
  25. WaitLMB()()
  26. WaitFire(PortName)(d0)
  27. WaitTime(MicroSeconds)(d0)
  28. AddInputHandler()()
  29. RemInputHandler()()
  30. AddInterrupt(Interrupt,IntNum,IntPri)(a0/d0/d1)
  31. RemInterrupt(IntBase)(a0)
  32. SmartLoad(FileName,Destination,MemType)(a0/a1/d0)
  33. QuickLoad(FileName,Destination,MemType)(a0/a1/d0)
  34. SmartUnpack(Source,Destination,Password,MemType)(a0/a1/d0/d1)
  35. SmartSave(FileName,Source,SrcLength)(a0/a1/d0)
  36. SetUserPrefs(PrefsName)(a0)
  37. GetPicInfo(Source,Picture)(a0/a1)
  38. UnpackPic(Source,Picture)(a0/a1)
  39. LoadPic(Picture)(a1)
  40. AllocMemBlock(Size,MemType)(d0/d1)
  41. FreeMemBlock(MemBlock)(d0)
  42. FreePic(Picture)(a1)
  43. InitTags(Structure,TagList)(a0/a1)
  44. LoadPicInfo(Options,FileName)(d0,a1)
  45. FindGMSTask()()
  46. AddTrack(ID,Address)(d0/a0)
  47. DeleteTrack(ID,Key)(d0/d1)
  48. DecToText(Number,AmtDigits,Destination)(d0/d1/a0)
  49. LoadObjectFile(FileName)(a0)
  50. GetObject(ObjectBase,Name)(a0/a1)
  51. GetObjectList(ObjectBase,ObjectList)(a0/a1)
  52. FreeObjectFile(ObjectBase)(a0)
  53. GrabObjectList(ObjectBase)(a0)
  54. ##private
  55. gamesPrivate12()()
  56. gamesPrivate13()()
  57. gamesPrivate14()()
  58. gamesPrivate15()()
  59. gamesPrivate16()()
  60. gamesPrivate17()()
  61. gamesPrivate18()()
  62. gamesPrivate19()()
  63. gamesPrivate20()()
  64. gamesPrivate21()()
  65. gamesPrivate22()()
  66. gamesPrivate23()()
  67. gamesPrivate24()()
  68. gamesPrivate25()()
  69. gamesPrivate26()()
  70. gamesPrivate27()()
  71. gamesPrivate28()()
  72. ##public
  73. *----------------------------------------
  74. * Screens.GPI general functions.         
  75. *----------------------------------------
  76. AddScreen(GameScreen)(a0)
  77. DeleteScreen(GameScreen)(a0)
  78. ShowScreen(GameScreen)(a0)
  79. HideDisplay()()
  80. Switch()()
  81. AutoSwitch()()
  82. SwapBuffers(GameScreen)(a0)
  83. WaitVBL()()
  84. WaitSVBL()()
  85. WaitSRVBL()()
  86. WaitRastLine(LinePosition)(d0)
  87. RefreshScreen(GameScreen)(a0)
  88. RemakeScreen(GameScreen)(a0)
  89. MovePicture(GameScreen)(a0)
  90. ResetPicture(GameScreen)(a0)
  91. UpdatePalette(GameScreen)(a0)
  92. PaletteMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcPalette,DestPalette)(a0/d0/d1/d3/d4/a1/a2)
  93. PaletteToColour(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
  94. ColourMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcColour,DestColour)(a0/d0/d1/d3/d4/d2/d5)
  95. ColourToPalette(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
  96. ChangeColours(GameScreen,Colours,StartColour,AmtColours)(a0/a1/d0/d1)
  97. BlankColours(GameScreen)(a0)
  98. InitRasterList(GameScreen)(a0)
  99. UpdateRasterList(GameScreen)(a0)
  100. UpdateRasterCommand(GameScreen,Command)(a0/a2)
  101. UpdateRasterCommands(GameScreen,Command,Amount)(a0/a2/d0)
  102. UpdateRasterLines(GameScreen)(a0)
  103. RemoveRasterList(GameScreen)(a0)
  104. HideRasterList(GameScreen)(a0)
  105. ShowRasterList(GameScreen)(a0)
  106. InitSprite(GameScreen,Sprite)(a0/a1)
  107. UpdateSprite(GameScreen,Sprite)(a0/a1)
  108. MoveSprite(GameScreen,Sprite)(a0/a1)
  109. HideSprite(GameScreen,SpriteNum)(a0/d0)
  110. UpdateSpriteList(SpriteList)(a0)
  111. HideSpriteList(SpriteList)(a0)
  112. RemoveAllSprites(GameScreen)(a0)
  113. ReturnAllSprites(GameScreen)(a0)
  114. FreeSprite(Sprite)(a1)
  115. UpdateRGB12(GameScreen,Colour,RGB)(a0/d0/d1)
  116. UpdateRGB24(GameScreen,Colour,RRGGBB)(a0/d0/d1)
  117. ScrLockOn(GameScreen)(a0)
  118. ScrLockOff(GameScreen)(a0)
  119. AllocVideoMem(Size)(d0)
  120. ##private
  121. gamesPrivate35()()
  122. gamesPrivate36()()
  123. gamesPrivate37()()
  124. gamesPrivate38()()
  125. gamesPrivate39()()
  126. gamesPrivate40()()
  127. gamesPrivate41()()
  128. gamesPrivate42()()
  129. gamesPrivate43()()
  130. gamesPrivate44()()
  131. gamesPrivate45()()
  132. gamesPrivate46()()
  133. gamesPrivate47()()
  134. gamesPrivate48()()
  135. gamesPrivate49()()
  136. gamesPrivate50()()
  137. gamesPrivate51()()
  138. gamesPrivate52()()
  139. gamesPrivate53()()
  140. ##public
  141. *----------------------------------------
  142. * Blitter.GPI                            
  143. *----------------------------------------
  144. AllocBlitter()()
  145. FreeBlitter()()
  146. InitBOB(GameScreen,BOB)(a0/a1)
  147. FreeBOB(BOB)(a1)
  148. DrawBOB(GameScreen,BOB,RestoreList,Buffer)(a0/a1/a2/d0)
  149. DrawBOBList(GameScreen,BOBList,RestoreList,Buffer)(a0/a1/a2/d0)
  150. ClearBOB(GameScreen,BOB,Buffer)(a0/a1/d0)
  151. DrawLine(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
  152. CopyBuffer(GameScreen,SrcBuffer,DestBuffer)(a0/d0/d1)
  153. ClrScreen(GameScreen,Buffer)(a0/d0) 
  154. ClrArea(GameScreen,SX,SY,EX,EY)(a0/d0/d1/d2/d3)
  155. InitRestore(AmtBuffers,Entries)(d0/d1)
  156. FreeRestore(RestoreList)(d0)
  157. ResetRestore(RestoreList)(a1)
  158. Restore(GameScreen,RestoreList)(a0/a1)
  159. CleanUpRestore(GameScreen,RestoreList)(a0/a1)
  160. *
  161. InitMap(GameScreen,Map)(a0/a1)
  162. DrawMap(GameScreen,Map)(a0/a1)
  163. DrawMapHRow(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
  164. DrawMapVRow(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
  165. FreeMap(Map)(a1)
  166. *
  167. DrawPixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
  168. DrawPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
  169. DrawUCPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
  170. DrawUCPixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
  171. *
  172. ReadPixel(GameScreen,Buffer,XCoord,YCoord)(a0/d0/d1/d2)
  173. ReadPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
  174. *
  175. DrawUCLine(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
  176. *
  177. DrawMapTile(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
  178. AllocBlitMem(Size)(d0)
  179. ##private
  180. gamesPrivate63()()
  181. gamesPrivate64()()
  182. gamesPrivate65()()
  183. gamesPrivate66()()
  184. gamesPrivate67()()
  185. gamesPrivate68()()
  186. gamesPrivate69()()
  187. gamesPrivate70()()
  188. gamesPrivate71()()
  189. gamesPrivate72()()
  190. gamesPrivate73()()
  191. gamesPrivate74()()
  192. gamesPrivate75()()
  193. gamesPrivate76()()
  194. gamesPrivate77()()
  195. gamesPrivate78()()
  196. gamesPrivate79()()
  197. gamesPrivate80()()
  198. gamesPrivate81()()
  199. gamesPrivate82()()
  200. gamesPrivate83()()
  201. gamesPrivate84()()
  202. gamesPrivate85()()
  203. gamesPrivate86()()
  204. gamesPrivate87()()
  205. gamesPrivate88()()
  206. gamesPrivate89()()
  207. gamesPrivate90()()
  208. gamesPrivate91()()
  209. gamesPrivate92()()
  210. gamesPrivate93()()
  211. ##public
  212. *----------------------------------------
  213. * Sound.GPI                              
  214. *----------------------------------------
  215. AllocAudio()()
  216. FreeAudio()()
  217. InitSound(Sound)(a0)
  218. FreeSound(Sound)(a0)
  219. CheckChannel(ChannelName)(d0)
  220. PlaySound(Sound)(a0)
  221. PlaySoundDAC1(Sound)(a0)
  222. PlaySoundDAC2(Sound)(a0)
  223. PlaySoundDAC3(Sound)(a0)
  224. PlaySoundDAC4(Sound)(a0)
  225. PlaySoundPri(Sound)(a0)
  226. PlaySoundPriDAC1(Sound)(a0)
  227. PlaySoundPriDAC2(Sound)(a0)
  228. PlaySoundPriDAC3(Sound)(a0)
  229. PlaySoundPriDAC4(Sound)(a0)
  230. SetVolume(Channel,Volume)(d0/d1)
  231. FadeVolume(Channel)(d0)
  232. StopSound(Sound)(a0)
  233. StopChannel(Channel)(d0)
  234. InitMusic()()
  235. PlayMusic()()
  236. StopMusic()()
  237. AllocSoundMem(Size)(d0)
  238. ##end
  239.