p_switch.c
资源名称:21.rar [点击查看]
上传用户:xuyinpeng
上传日期:2021-05-12
资源大小:455k
文件大小:14k
源码类别:
射击游戏
开发平台:
Visual C++
- // Emacs style mode select -*- C++ -*-
- //-----------------------------------------------------------------------------
- //
- // $Id:$
- //
- // Copyright (C) 1993-1996 by id Software, Inc.
- //
- // This source is available for distribution and/or modification
- // only under the terms of the DOOM Source Code License as
- // published by id Software. All rights reserved.
- //
- // The source is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
- // for more details.
- //
- //
- // $Log:$
- //
- // DESCRIPTION:
- // Switches, buttons. Two-state animation. Exits.
- //
- //-----------------------------------------------------------------------------
- static const char
- rcsid[] = "$Id: p_switch.c,v 1.3 1997/01/28 22:08:29 b1 Exp $";
- #include "i_system.h"
- #include "doomdef.h"
- #include "p_local.h"
- #include "g_game.h"
- #include "s_sound.h"
- // Data.
- #include "sounds.h"
- // State.
- #include "doomstat.h"
- #include "r_state.h"
- //
- // CHANGE THE TEXTURE OF A WALL SWITCH TO ITS OPPOSITE
- //
- switchlist_t alphSwitchList[] =
- {
- // Doom shareware episode 1 switches
- {"SW1BRCOM", "SW2BRCOM", 1},
- {"SW1BRN1", "SW2BRN1", 1},
- {"SW1BRN2", "SW2BRN2", 1},
- {"SW1BRNGN", "SW2BRNGN", 1},
- {"SW1BROWN", "SW2BROWN", 1},
- {"SW1COMM", "SW2COMM", 1},
- {"SW1COMP", "SW2COMP", 1},
- {"SW1DIRT", "SW2DIRT", 1},
- {"SW1EXIT", "SW2EXIT", 1},
- {"SW1GRAY", "SW2GRAY", 1},
- {"SW1GRAY1", "SW2GRAY1", 1},
- {"SW1METAL", "SW2METAL", 1},
- {"SW1PIPE", "SW2PIPE", 1},
- {"SW1SLAD", "SW2SLAD", 1},
- {"SW1STARG", "SW2STARG", 1},
- {"SW1STON1", "SW2STON1", 1},
- {"SW1STON2", "SW2STON2", 1},
- {"SW1STONE", "SW2STONE", 1},
- {"SW1STRTN", "SW2STRTN", 1},
- // Doom registered episodes 2&3 switches
- {"SW1BLUE", "SW2BLUE", 2},
- {"SW1CMT", "SW2CMT", 2},
- {"SW1GARG", "SW2GARG", 2},
- {"SW1GSTON", "SW2GSTON", 2},
- {"SW1HOT", "SW2HOT", 2},
- {"SW1LION", "SW2LION", 2},
- {"SW1SATYR", "SW2SATYR", 2},
- {"SW1SKIN", "SW2SKIN", 2},
- {"SW1VINE", "SW2VINE", 2},
- {"SW1WOOD", "SW2WOOD", 2},
- // Doom II switches
- {"SW1PANEL", "SW2PANEL", 3},
- {"SW1ROCK", "SW2ROCK", 3},
- {"SW1MET2", "SW2MET2", 3},
- {"SW1WDMET", "SW2WDMET", 3},
- {"SW1BRIK", "SW2BRIK", 3},
- {"SW1MOD1", "SW2MOD1", 3},
- {"SW1ZIM", "SW2ZIM", 3},
- {"SW1STON6", "SW2STON6", 3},
- {"SW1TEK", "SW2TEK", 3},
- {"SW1MARB", "SW2MARB", 3},
- {"SW1SKULL", "SW2SKULL", 3},
- {"