home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / oss / cvs-2004 / psang / main.h,v < prev    next >
Text File  |  2003-07-07  |  2KB  |  104 lines

  1. head     1.1;
  2. branch   1.1.1;
  3. access   ;
  4. symbols  Initial:1.1.1.1 psang:1.1.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     2003.07.07.19.32.23;  author jhoffman;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     2003.07.07.19.32.23;  author jhoffman;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @/* main.h - xtron v1.1 header for main
  31.  *
  32.  *   Copyright (C) 1995 Rhett D. Jacobs <rhett@@hotel.canberra.edu.au>
  33.  *
  34.  *  This program is free software; you can redistribute it and/or modify
  35.  *  it under the terms of the GNU General Public License as published by
  36.  *  the Free Software Foundation; either version 1, or (at your option)
  37.  *  any later version.
  38.  *
  39.  *  This program is distributed in the hope that it will be useful,
  40.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  41.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  42.  *  GNU General Public License for more details.
  43.  *
  44.  *  You should have received a copy of the GNU General Public License
  45.  *  along with this program; if not, write to the Free Software
  46.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  47.  *
  48.  *  Last Modified: 16/4/95
  49.  */
  50.  
  51. #ifndef _MAIN_H
  52. #define _MAIN_H
  53.  
  54. #include <string.h>
  55. #include <sys/types.h>
  56. #include <sys/time.h>
  57.  
  58. #include "wintype.h"
  59. #include "xtron.h"
  60. #include "resource.h"
  61. #include "xpm2pixmap.h"
  62.  
  63. #define TOTAL_WIDTH 384
  64. #define TOTAL_HEIGHT 512
  65. #define WPIECE 8
  66. #define HPIECE 8
  67. #define WBOARD 128
  68. #define HBOARD 128
  69. #define WBUTTON1 96
  70. #define HBUTTON1 32
  71. #define WBUTTON2 192
  72. #define HBUTTON2 32
  73. #define WBUTTON3 384
  74. #define HBUTTON3 32
  75.  
  76. extern struct Player p[2];
  77. extern struct Board b;
  78.  
  79. void ButtonEvent(XButtonEvent *pEvent);
  80. void KeyEvent(XKeyEvent *pEvent);
  81. void ExposeEvent(XExposeEvent *pEvent);
  82. Window set_window(int x, int y, int width, int height);
  83. void mapwindows(void);
  84. Pixmap set_icon(char *filen);
  85. int check_valid(int p_num, int x_inc, int y_inc);
  86. void think(int p_num);
  87. int game_update(void);
  88. void delay(int len);
  89. void restart_game(void);
  90. void open_windows(int argc, char **argv);
  91. void assign_bitmaps(void);
  92. void assign_keys(void);
  93.  
  94. #endif
  95. @
  96.  
  97.  
  98. 1.1.1.1
  99. log
  100. @Protocol for Simple Arcade-Style Network Gaming
  101. @
  102. text
  103. @@
  104.