home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / new / dev / c / hce / examples / amiga / pools / pools.h < prev    next >
C/C++ Source or Header  |  1992-09-02  |  3KB  |  110 lines

  1. #ifndef POOLS_H
  2. #define POOLS_H 1
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. #ifndef INTUITION_INTUITION_H
  9. #include <intuition/intuition.h>
  10. #endif
  11.  
  12. #ifndef PROTO_ALL_H
  13. #include <proto/all.h>
  14. #endif
  15.  
  16. /*
  17.  * Copyright (c) 1994. Author: Jason Petty.
  18.  *
  19.  * Permission is granted to anyone to use this software for any purpose
  20.  * on any computer system, and to redistribute it freely, with the
  21.  * following restrictions:
  22.  * 1) No charge may be made other than reasonable charges for reproduction.
  23.  * 2) Modified versions must be clearly marked as such.
  24.  * 3) The authors are not responsible for any harmful consequences
  25.  *    of using this software, even if they result from defects in it.
  26.  *
  27.  *    pools.h:
  28.  *
  29.  *             Definitions and Prototypes used by all files.
  30.  */
  31.  
  32. #define MAX_TABLE    24     /* Max teams per table.   */
  33. #define MAX_ENTRIES  7      /* Max entries per team.  */
  34. #define MAX_STRING   50     /* Standard string sizes. */
  35.   
  36. struct pools_table {
  37.                     struct pools_table *next;
  38.                     char league[MAX_STRING];
  39.                     char team[MAX_TABLE][MAX_STRING];
  40.                     int table[MAX_TABLE][MAX_ENTRIES];
  41.                     int count;
  42. };
  43.  
  44. typedef struct pools_table P_TABLE;
  45.  
  46.  
  47. /* NOTE: */
  48. /* 'CH', below = Can be Changed. (May have to recompile all files though!)*/
  49.  
  50. #define s_vp   &my_screen->ViewPort
  51. #define s_rp   &my_screen->RastPort
  52. #define g_rp   g_window->RPort
  53. #define gfx_rp gfx_window->RPort
  54.  
  55. /* Used to place league gadgets and names on 'g_window'. CH.*/
  56. #define INN_X   70       /* Left side gadgets. */
  57. #define MID_X   260      /* Middle */
  58. #define OUT_X   460      /* Right  */
  59. #define TOP_Y   14       /* Where gadgets Y start position is.  */
  60. #define GAP_Y   2        /* Gap between gadgets in Y direction. */
  61. #define WID_Y   12       /* How tall gadgets are. */
  62.  
  63. #define RS_Y    182      /* Y. Min y pos allowed in result box. CH */
  64. #define RS_X    60       /* X. Min x pos allowed in result box. CH */
  65.  
  66. /* Used to place 'choose' league gadgets on 'gfx_window'. CH. */
  67. #define c_OUT_X   180    /* Dist out from left edge. */
  68. #define c_TOP_Y   35     /* or 45.Where gadgets Y start position is. */
  69. #define c_GAP_Y   2      /* Gap between gadgets in Y direction. */
  70. #define c_WID_Y   12     /* How tall gadgets are. */
  71.  
  72. /* Cycle gadget defines. */
  73. #define YES_NO       0
  74. #define NO_YES       1      /* Show "NO" then change to "YES" */
  75. #define ON_OFF       2      /* Show "ON" then change to "OFF" */
  76. #define OFF_ON       3
  77. #define BIT32_BIT16  4      /* Show "32 BIT" then change to "16 BIT" */
  78. #define BIT16_BIT32  5
  79.  
  80. /* Pools.c */
  81. void main(), close_shop(), Do_LEAGUE(), Show_LEAGUE(), Show_LEAGUE_N();
  82. void Print_Heading(), Do_Comment();
  83. int Get_Team();
  84.  
  85. /* GadCtrl.c */
  86. int Open_GWind();
  87. void Close_GWind(), Refresh_GWind();
  88. long Get_GMsgs();
  89. long Get_GMsgs2();
  90.  
  91. /* GadTools.c */
  92. struct Gadget *MakeButtonGad(), *MakeCycleGad(), *MakeStringGad();
  93. struct Gadget *MakeIntegerGad();
  94. void SetCycleTags(), SetStringTags(), Free_GT_Gadgets();
  95. void Free_VisualInfo();
  96. int Alloc_VisualInfoA(), Alloc_L_Gadgets(), Alloc_D_Gadgets();
  97.  
  98. /* Gfx.c */
  99. BYTE DO_PrtText();
  100. struct Window *start();
  101. void finish(), PrtError(), Set_Graphics(), gfx_TXT(), gfx_FPEN();
  102. void gfx_BPEN(), g_TXT(), g_FPEN(), g_BPEN(), Clear_RBOX(), Help();
  103. void Draw_RBOX(), RB_Msg();
  104.  
  105. /* read.c */
  106. void Test_Incode();
  107. char charin();
  108. int readfile(), readtable();
  109. #endif
  110.