File: flyingitems.h

package info (click to toggle)
bomberclone 0.11.9-7.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,228 kB
  • sloc: ansic: 14,256; sh: 3,800; makefile: 337
file content (27 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* $id:$ */

#ifndef _FLYINGITEMS_H_
#define _FLYINGITEMS_H_

/* maximum number of items which are saved in the list */
#define FLITEMS_MAXITEMS 250

struct __flyingitem {
	_pointf pos;	// current position
	_pointf from;	// position from where the items comes
	_pointf to;		// position to where it is going
	float step;		// step 0.0 is start 1.0 is end position
	unsigned char type;	// type
	struct __flyingitem *next;
} typedef _flyingitem;

extern void flitems_loop ();
extern _flyingitem *flitems_findfree ();
extern void flitems_dropitems (int p_nr, _pointf from, int cnt_speed, int cnt_bombs, int cnt_range);
extern void flitems_draw (_flyingitem *flitem);
extern _flyingitem *flitems_additem (_pointf from, _point to, signed char type);
extern void flitems_reset ();
extern _point flitems_randompos (int p_nr);
extern int flitems_checkfreepos (_point to);

#endif