| 1 |
/** |
| 2 |
* Live sprites manager |
| 3 |
|
| 4 |
* Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson |
| 5 |
* Copyright (C) 2005, 2007, 2008, 2009, 2014, 2015 Sylvain Beucler |
| 6 |
|
| 7 |
* This file is part of GNU FreeDink |
| 8 |
|
| 9 |
* GNU FreeDink is free software; you can redistribute it and/or |
| 10 |
* modify it under the terms of the GNU General Public License as |
| 11 |
* published by the Free Software Foundation; either version 3 of the |
| 12 |
* License, or (at your option) any later version. |
| 13 |
|
| 14 |
* GNU FreeDink is distributed in the hope that it will be useful, but |
| 15 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
* General Public License for more details. |
| 18 |
|
| 19 |
* You should have received a copy of the GNU General Public License |
| 20 |
* along with this program. If not, see |
| 21 |
* <http://www.gnu.org/licenses/>. |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef _LIVE_SPRITES_MANAGER_H |
| 25 |
#define _LIVE_SPRITES_MANAGER_H |
| 26 |
|
| 27 |
#include "live_sprite.h" |
| 28 |
|
| 29 |
#define MAX_SPRITES_AT_ONCE 300 |
| 30 |
extern struct sp spr[]; |
| 31 |
extern int last_sprite_created; |
| 32 |
|
| 33 |
extern void live_sprites_manager_init(); |
| 34 |
|
| 35 |
extern bool lsm_isValidSprite(int sprite); |
| 36 |
extern void lsm_remove_sprite(int sprite); |
| 37 |
|
| 38 |
extern int add_sprite(int x1, int y, int brain,int pseq, int pframe ); |
| 39 |
extern int add_sprite_dumb(int x1, int y, int brain,int pseq, int pframe,int size); |
| 40 |
extern void random_blood(int mx, int my, int sprite); |
| 41 |
|
| 42 |
extern void kill_text_owned_by(int sprite); |
| 43 |
extern int does_sprite_have_text(int sprite); |
| 44 |
extern /*bool*/int text_owned_by(int sprite); |
| 45 |
|
| 46 |
extern void lsm_kill_all_nonlive_sprites(); |
| 47 |
extern void get_last_sprite(void); |
| 48 |
extern int find_sprite(int editor_sprite); |
| 49 |
|
| 50 |
#endif |