taisei/src/item.h
laochailan 36e4dc331b compatibility for old hardware
added two config options:

disable_shader: will turn off the use of shaders and fbos in the game. there is no full replacement for them, however.
disable_audio: guess what.

both options *should* be activated automatically as soon as something goes wrong.
2011-06-27 13:36:35 +02:00

48 lines
708 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
* Code by: Juergen Kieslich
*/
#ifndef ITEM_H
#define ITEM_H
#include <complex.h>
typedef struct Item Item;
typedef enum {
Power,
Point,
BPoint,
Life,
Bomb
} Type;
struct Item{
Item *next;
Item *prev;
int birthtime;
complex pos;
complex pos0;
int auto_collect;
Type type;
complex v;
};
Item *create_item(complex pos, complex v, Type type);
void delete_item(Item *item);
void draw_items();
void delete_items();
int collision_item(Item *p);
void process_items();
void spawn_item(complex pos, Type type);
#endif