X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fmonster.h;h=941e8996a71490abe8c22fc91d57dcfd68d74c69;hb=e406060913a5544c83de81409148690275ffce95;hp=98534b3f21739ac530842ab720573435d055617c;hpb=2bb81ea2565c3627c954b5c37326db89b0048472;p=flatwaifu.git diff --git a/src/monster.h b/src/monster.h index 98534b3..941e899 100644 --- a/src/monster.h +++ b/src/monster.h @@ -1,23 +1,19 @@ -/* - 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 MONSTER_H_INLUDED #define MONSTER_H_INLUDED @@ -38,7 +34,6 @@ enum { #define MN_TN (MN__LAST-MN_DEMON) -#pragma pack(1) typedef struct { obj_t o; byte t, d, st, ftime; @@ -48,14 +43,14 @@ typedef struct { int aim, life, pain, ac, tx, ty, ammo; short atm; } mn_t; -#pragma pack(0) extern byte nomon; extern int hit_xv, hit_yv; extern mn_t mn[MAXMN]; +extern int mnum, gsndt; + +void setst (int i, int st); -void MN_savegame (FILE *h); -void MN_loadgame (FILE *h); void MN_alloc (void); void MN_init (void); int MN_spawn (int x, int y, byte d, int t);