home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Games / ECS / PowerCrawler / Developer / include / misc / PowerCrawler.i < prev   
Encoding:
Text File  |  1998-06-24  |  4.6 KB  |  139 lines

  1.     IFND PowerCrawler_I
  2. PowerCrawler_I Set 1
  3.  
  4.     IFND EXEC_TYPES_I
  5.     INCLUDE "exec/types.i"
  6.     ENDC
  7.     
  8.     IFND LIBRARIES_ASL_I
  9.     INCLUDE "libraries/asl.i"
  10.     ENDC
  11. ;----------------------------------------------------------
  12.     
  13.     
  14. PC_IO_LOADMAP = 0
  15. PC_IO_SAVEMAP = 1
  16. PC_IO_GETINFO = 2
  17.  
  18. PC_PL_LOADPIC = 0
  19. PC_PL_GETINFO = 2
  20.  
  21. PC_ACTION_NOACTION = 0
  22. PC_ACTION_GETRECT = 1
  23.  
  24. PC_RETURN_OK = 0
  25. PC_RETURN_ERROR = 1
  26. PC_RETURN_READERROR = 2
  27. PC_RETURN_WRITEERROR = 3
  28. PC_RETURN_DOSERROR = 4
  29. PC_RETURN_NOMEMORY = 5
  30. PC_RETURN_WRONGFORMAT = 6
  31. PC_RETURN_NOMAPBUFFER = 7
  32.  
  33. ;----------------------------------------------------------
  34.  
  35.     STRUCTURE PCMapData,0
  36.     
  37.     UBYTE    pcd_MemoryType            ;1=Byte,  2=Word
  38.     UBYTE    pcd_Layers            ;Number of Layers
  39.     UBYTE    pcd_BlockSizeX
  40.     UBYTE    pcd_BlockSizeY
  41.     ULONG    pcd_MapWidth
  42.     ULONG    pcd_MapHeight
  43.     UBYTE    pcd_TransparentBlock        ;0=Block 0,  1=Block -1
  44.     UBYTE    pcd_Compression            ;(only when saved!) 0=NONE,   1=BYTERUN1
  45.     ULONG    pcd_Reserved1
  46.     ULONG    pcd_Reserved2
  47.     ULONG    pcd_Reserved3
  48.     LABEL    PCMapData_SIZEOF
  49.  
  50. ;----------------------------------------------------------
  51.     STRUCTURE PCBrushData,0
  52.     
  53.     STRUCT    pcb_Node,LN_SIZE
  54.     UWORD    pcb_NameLength
  55.     STRUCT    pcb_Name,26
  56.     UWORD    pcb_Width
  57.     UWORD    pcb_Height
  58.     UWORD    pcb_Layers
  59.     ULONG    pcb_LayerSize
  60.     UWORD    pcb_MemoryType
  61.     ULONG    pcb_AllocSize                ;Memory, the Brush needs
  62.     ULONG    pcb_Reserved1
  63.     ULONG    pcb_Reserved2
  64.     ULONG    pcb_Reserved3
  65.     UWORD    pcb_Data                ;
  66.     LABEL    PCBrushData_SIZEOF
  67.         
  68. ;----------------------------------------------------------
  69.     STRUCTURE PCInformation,0
  70.  
  71.     APTR        pci_DosBase            ;Some Libraries
  72.     APTR        pci_GfxBase
  73.     APTR        pci_IntBase
  74.     APTR        pci_GadBase
  75.     APTR        pci_AslBase
  76.     APTR        pci_DiskFontbase
  77.     APTR        pci_LayersBase
  78.     APTR        pci_IconBase            ;May be 0 (not opened)
  79.     APTR        pci_WBBase            ;May be 0 (not opened)
  80.     ULONG        pci_reserved1
  81.     ULONG        pci_reserved2
  82.     ULONG        pci_reserved3
  83.     APTR        pci_WindowScreen        ;Screen on which the Mainwindow was opened (Workbench!?)
  84.     APTR        pci_PicScreen            ;Blocks-Screen (may be 0)
  85.     APTR        pci_EditScreen            ;Edit-Screen (may be 0)
  86.     ULONG        pci_PicDisplayID
  87.     ULONG        pci_EditDisplayID
  88.     UWORD        pci_PicOverScanType
  89.     UWORD        pci_EditOverScanType
  90.     ULONG        pci_PicWidth
  91.     ULONG        pci_PicHeight
  92.     UWORD        pci_PicPlanes
  93.     APTR        pci_PicRastPort            ;RastPort of the borderless Window on Block-Screen
  94.     APTR        pci_PicColors            ;Pointer to a CMAP-Chunk (IFF-ILBM-FORMAT)
  95.     UWORD        pci_EditPlanes            ;# of Planes on EditScreen ( >= pci_PicPlanes)
  96.     APTR        pci_MaskBitmap            ;Pointer to the Mask-Bitmap (same Width, Height, Planes like Pic-Screen)
  97.     APTR        pci_WBFont            ;Pointer to TextFont-Structure
  98.     APTR        pci_EDFont            ;"       "  "
  99.     APTR        pci_EDFontFix            ;"       "  "
  100.     ULONG        pci_WBFontSX            ;X-Width of Font used on WB-Screen
  101.     ULONG        pci_WBFontSY            ;Y-Width of Font used on WB-Screen
  102.     ULONG        pci_WBdx            ;Window-LeftBorder-Offset for WB
  103.     ULONG        pci_WBdy            ;Window-TopBorder-Offset for WB
  104.     ULONG        pci_EDFontSX            ;X-Width of Font used on Edit-Screen
  105.     ULONG        pci_EDFontSY            ;Y-Width of Font uses on Edit-Screen
  106.     ULONG        pci_EDFixSX            ;X-Width of Fix-Font used on Edit-Screen
  107.     ULONG        pci_EDFixSY            ;Y-Width of Fix-Font used on Edit-Screen
  108.     ULONG        pci_EDdx            ;Window-LeftBorder-Offset for Edit-Screen
  109.     ULONG        pci_EDdy            ;Window-TopBorder-Offset for Edit-Screen
  110.     UWORD        pci_WBShine            ;Shinepen for WB
  111.     UWORD        pci_WBShadow            ;Shadowpen for WB
  112.     UWORD        pci_WBFill            ;Fillpen for WB
  113.     UWORD        pci_WBBack            ;BackgroundPen for WB
  114.     UWORD        pci_EDShine            ;ShinePen for EDIT
  115.     UWORD        pci_EDShadow            ;ShadowPen for EDIT
  116.     UWORD        pci_EDFill            ;Fillpen for EDIT
  117.     UWORD        pci_EDBack            ;BackgroundPen for EDIT
  118.     APTR        pci_MapBuffer            ;Pointer to Mapbuffer
  119.     STRUCT        pci_MapData,PCMapData_SIZEOF    ;MapData-Structure (see above!)
  120.     UWORD        pci_NumBlocksX            ;Number of Blocks in one line (= PicWidth / pci_MapData.pcd_BlockSizeX)
  121.     APTR        pci_BrushTable            ;Pointer to an array of LEBrushData-Pointers
  122.     APTR        pci_ActualBrush            ;Pointer to active Brush (LEBrushData)
  123.     UWORD        pci_NumBrushes            ;Number of Brushes in BrushTable
  124.     APTR        pci_FlipTable            ;Pointer to array of word (1..pci_FlipTableEntries,1..2) [Format see below]
  125.     UWORD        pci_FlipTableEntries        ;Number of Flip-Entries (1 entry = 2 words. 1st word X-flip, 2nd Y-flip)
  126.     UWORD        pci_PenMode            ;(1=Block,   2=Brush)
  127.     UWORD        pci_PutMode            ;(1=Replace,   2=Matte)
  128.     UWORD        pci_ActualLayer            ;
  129.     UWORD        pci_ActualBlock            ;(if Penmode=Block)
  130.     UWORD        pci_PenWidth            ;in Blocks
  131.     UWORD        pci_PenHeight            ;in Blocks
  132.     ULONG        pci_MapPosX            ;actual View-Start-Position X (Edit-Mode (= Edit-Screen))
  133.     ULONG        pci_MapPosY            ;actual View-Start-Position Y (Edit-Mode (= Edit-Screen))
  134.     UWORD        pci_VisibleX            ;actual visible Blocks X (Edit-Mode (= Edit-Screen))
  135.     UWORD        pci_VisibleY            ;actual visible Blocks Y (Edit-Mode (= Edit-Screen))
  136.  
  137.     LABEL        PCInformation_SIZEOF
  138.     
  139.     ENDC