|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 1841 (0x731)
Types: TextFile
Names: »mex.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/Sun/Mex/mex.h«
#include <stdio.h>
#include <pixrect/pixrect_hs.h>
#include <suntool/sunview.h>
#include <suntool/canvas.h>
#include <suntool/panel.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sundev/kbio.h>
#include <pwd.h>
#include <sundev/kbd.h>
#include <pixrect/memvar.h>
#define S_IRUSR 0000400 /* read permission, owner */
#define S_IWUSR 0000200 /* write permission, owner */
#define S_IXUSR 0000100 /* execute/search permission, owner */
#define S_IRGRP 0000040 /* read permission, group */
#define S_IWGRP 0000020 /* write permission, grougroup */
#define S_IXGRP 0000010 /* execute/search permission, group */
#define S_IROTH 0000004 /* read permission, other */
#define S_IWOTH 0000002 /* write permission, other */
#define S_IXOTH 0000001 /* execute/search permission, other */
#define S_ENFMT 0000000 /* enforcement-mode locking not implemented */
/* #include <sys/stat.h> */
#include <sys/timeb.h>
#define height 22 /* screen height in blocks */
#define width 11 /* screen width in blocks */
#define object_width 4 /* number of blocks object is made of */
#define object_height 3 /* Maximum object height */
#define char_height 18 /* space each block will take on screen */
#define char_width 18 /* this will allow a 2 pixel buffer area */
#define x1 current_object->x[0]
#define x4 current_object->x[3]
#define block_icon_height 16 /* block data (picture) height */
#define block_icon_width 16 /* block data (picture) width */
#define NEW_GAME 1
#define EXIT_GAME 0
#define GAME_OVER 2
#define MAX_LEVEL 10 /* Max. level a player can obtain */
#define RUNNING 3
#define KEEP_SCORES 10 /* number of scores to keep a record of */
#define info_file "info.file"
#define MOVES_PER_ROW 5
struct each_player{
char name[60];
int score;
int rows;
char date[40];
};