Changeset 49 for libcaca/trunk/src/common.h
- Timestamp:
- Dec 23, 2002, 10:28:37 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/common.h
r43 r49 4 4 * All Rights Reserved 5 5 * 6 * $Id: common.h,v 1. 9 2002/12/22 22:36:42sam Exp $6 * $Id: common.h,v 1.10 2002/12/23 09:28:37 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 22 22 23 23 #define STARS 50 24 #define WEAPONS 10024 #define WEAPONS 200 25 25 #define BONUS 30 26 26 #define ALIENS 30 27 #define EXPLOSIONS 10027 #define EXPLOSIONS 200 28 28 29 29 #ifdef USE_SLANG … … 44 44 45 45 #define GET_RAND(p,q) ((p)+(int)((1.0*((q)-(p)))*rand()/(RAND_MAX+1.0))) 46 #define GET_MAX(a,b) ((a)>(b)?(a):(b)) 47 #define GET_MIN(a,b) ((a)<(b)?(a):(b)) 46 48 47 49 typedef struct … … 53 55 typedef struct 54 56 { 55 int x[STARS]; 56 int y[STARS]; 57 int z[STARS]; 58 char ch[STARS]; 59 int c[STARS]; 57 int x, y, z, c; 58 char ch; 60 59 61 60 } starfield; … … 170 169 void add_bonus( game *g, bonus *bo, int x, int y, int type ); 171 170 172 void init_starfield( game *g, starfield *s);171 starfield * create_starfield( game *g ); 173 172 void draw_starfield( game *g, starfield *s ); 174 173 void update_starfield( game *g, starfield *s ); 174 void free_starfield( game *g, starfield *s ); 175 175 176 176 tunnel * create_tunnel( game *g, int w, int h );
Note: See TracChangeset
for help on using the changeset viewer.