X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fswitch.h;h=de9b9c114f5015eeef5497155fe4dd102261d8ca;hb=d0cd4640408a59991ecaa35b47907209a0620d9f;hp=621df40eb687468efa78238593f81300509c6c5f;hpb=2bb81ea2565c3627c954b5c37326db89b0048472;p=flatwaifu.git diff --git a/src/switch.h b/src/switch.h index 621df40..de9b9c1 100644 --- a/src/switch.h +++ b/src/switch.h @@ -1,41 +1,43 @@ -/* - Copyright (C) Prikol Software 1996-1997 - Copyright (C) Aleksey Volynskov 1996-1997 - - This file is part of the Doom2D:Rembo project. - - 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. - - 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. - - 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 -*/ +/* 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 . + */ #ifndef SWITCH_H_INCLUDED #define SWITCH_H_INCLUDED -#include // FILE #include "view.h" // obj_t +#define MAXSW 100 + enum { SW_NONE, SW_EXIT, SW_EXITS, SW_OPENDOOR, SW_SHUTDOOR, SW_SHUTTRAP, SW_DOOR, SW_DOOR5, SW_PRESS, SW_TELE, SW_SECRET, SW_LIFTUP, SW_LIFTDOWN, SW_TRAP, SW_LIFT }; +typedef struct { + byte x, y; + byte t, tm; + byte a, b, c, d; + byte f; +} sw_t; + extern int sw_secrets; +extern sw_t sw[MAXSW]; -void SW_savegame (FILE *h); -void SW_loadgame (FILE *h); -int SW_load (FILE *h); void SW_alloc (void); void SW_init (void); void Z_water_trap (obj_t *o);