X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fdots.h;h=58d0a31f0980d90656eddc9e67343f2d2ff85d11;hp=504e955d86c56183ea2a76adeba65802eb7db477;hb=ef16dea09f87b15fc6d58fae0aa0832e0648c00e;hpb=a46a1d55c077e3aa91a728047409050187e90083 diff --git a/src/dots.h b/src/dots.h index 504e955..58d0a31 100644 --- a/src/dots.h +++ b/src/dots.h @@ -1,33 +1,41 @@ -/* - Copyright (C) Prikol Software 1996-1997 - Copyright (C) Aleksey Volynskov 1996-1997 +/* Copyright (C) 1996-1997 Aleksey Volynskov + * Copyright (C) 2011 Rambo + * Copyright (C) 2020 SovietPony + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 of the License ONLY. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ - This file is part of the Doom2D:Rembo project. +#ifndef DOTS_H_INCLUDED +#define DOTS_H_INCLUDED - Doom2D:Rembo is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. +#include "glob.h" +#include "view.h" // obj_t - Doom2D:Rembo is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. +#define MAXDOT 400 - You should have received a copy of the GNU General Public License - along with this program; if not, see or - write to the Free Software Foundation, Inc., - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +typedef struct { + obj_t o; + byte c, t; +} dot_t; -// Dots +extern dot_t dot[MAXDOT]; -#define MAXDOT 400 +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); -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); +#endif /* DOTS_H_INCLUDED */