X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fdots.h;h=ae40ce5afd87ae47d1bff3a56cd89fe8069b4d5e;hp=b5ac1d95b7d6e28546b005393f9e7cf501a1221c;hb=563dffaf02ff36da4054f937fcc9f99a072e15bf;hpb=a2115940e7643dcb1b87286f3d19fe95f7b79bd3 diff --git a/src/dots.h b/src/dots.h index b5ac1d9..ae40ce5 100644 --- a/src/dots.h +++ b/src/dots.h @@ -1,7 +1,6 @@ /* Copyright (C) Prikol Software 1996-1997 Copyright (C) Aleksey Volynskov 1996-1997 - Copyright (C) 2011 This file is part of the Doom2D:Rembo project. @@ -20,15 +19,27 @@ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -// Dots +#ifndef DOTS_H_INCLUDED +#define DOTS_H_INCLUDED + +#include "glob.h" +#include "view.h" // obj_t #define MAXDOT 400 -void DOT_init(void); -void DOT_alloc(void); -void DOT_act(void); -void DOT_draw(void); -void DOT_add(int x,int y,char xv,char yv,byte color,byte time); -void DOT_blood(int,int,int,int,int); -void DOT_spark(int,int,int,int,int); -void DOT_water(int,int,int,int,int,int); +typedef struct { + obj_t o; + byte c, t; +} dot_t; + +extern dot_t dot[MAXDOT]; + +void DOT_init (void); +void DOT_alloc (void); +void DOT_act (void); +void DOT_add (int x, int y, char xv, char yv, byte c, byte t); +void DOT_blood (int x, int y, int xv, int yv, int n); +void DOT_spark (int x, int y, int xv, int yv, int n); +void DOT_water (int x, int y, int xv, int yv, int n, int c); + +#endif /* DOTS_H_INCLUDED */