X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fview.h;h=914abd7e604d58a55a6fea4fb39e72bf7a56b118;hp=fb1eae16199be9b9d4cb47bcec19d25e706200b0;hb=ef16dea09f87b15fc6d58fae0aa0832e0648c00e;hpb=c46b82f5794be555af272740e67ead316b9b1f90 diff --git a/src/view.h b/src/view.h index fb1eae1..914abd7 100644 --- a/src/view.h +++ b/src/view.h @@ -1,55 +1,25 @@ -/* - Copyright (C) Prikol Software 1996-1997 - Copyright (C) Aleksey Volynskov 1996-1997 - Copyright (C) 2011 - - 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 -*/ - -// View functions +/* 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 VIEW_H_INCLUDED #define VIEW_H_INCLUDED -#include - - -// object data structure -#pragma pack(1) -typedef struct{ - int x,y; // coordinates - int xv,yv; // velocity - int vx,vy; - int r,h; // radius, height -}obj_t; - - -typedef struct{ - int x,y; - byte d; -}pos_t; -#pragma pack() - -enum{HIT_SOME,HIT_ROCKET,HIT_BFG,HIT_TRAP,HIT_WATER,HIT_ELECTRO,HIT_FLAME}; - -enum{ - GS_TITLE,GS_GAME,GS_INTER,GS_DARKEN,GS_ENDANIM,GS_END2ANIM,GS_ENDSCR, - GS_BVIDEO,GS_EVIDEO,GS_END3ANIM -}; +#include "glob.h" +#include // FILE #define FLDW 100 #define FLDH 100 @@ -58,40 +28,38 @@ enum{ #define MAXTXW 16 #define MAXTXH 8 -#pragma pack(1) - -typedef struct{ - char n[8]; - char t; -}wall_t; - -#pragma pack() +enum { + HIT_SOME, HIT_ROCKET, HIT_BFG, HIT_TRAP, HIT_WATER, HIT_ELECTRO, HIT_FLAME +}; -void W_draw(void); -void W_act(void); +enum { + GS_TITLE, GS_GAME, GS_INTER, GS_DARKEN, GS_ENDANIM, GS_END2ANIM, GS_ENDSCR, + GS_BVIDEO, GS_EVIDEO, GS_END3ANIM +}; -void W_init(void); +typedef struct { + int x, y; // coordinates + int xv, yv; // velocity + int vx, vy; + int r, h; // radius, height +} obj_t; -int W_load(FILE*); -int G_load(FILE*); +typedef struct { + int x, y; + byte d; +} pos_t; -void G_init(void); -void G_start(void); -void G_act(void); -void G_draw(void); +typedef struct { + char n[8]; + char t; +} wall_t; -extern byte walswp[256]; -extern byte _2pl,g_dm,g_st,g_exit,w_horiz,g_map; -extern int g_sttm; -extern dword g_time; -extern int w_o,w_x,w_y; +extern int sky_type; +extern dword walf[256]; extern byte fldb[FLDH][FLDW]; extern byte fldf[FLDH][FLDW]; extern byte fld[FLDH][FLDW]; -extern pos_t dm_pos[]; -extern int dm_pnum,dm_pl1p,dm_pl2p; -extern int WD; // -extern int HT; // +void W_init (void); -#endif /* VIEW_H_INCLUDED */ \ No newline at end of file +#endif /* VIEW_H_INCLUDED */