/* $Id: trap.h,v 1.666 2004/09/20 10:49:54 shrike Exp $ */ /************************************************************************************ * Copyright 2004 Astrum Metaphora consortium * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * * * ************************************************************************************/ #ifndef _TRAP_H_ #define _TRAP_H_ #define TRAP_NOLEVEL (A) #define TRAP_PERMANENT (B) #define TRAP_NODETECT (C) #define TRAP_NOREMOVE (D) #define TRAP_NOPK_IGNORE (E) #define TRAP_ACID 1 #define TRAP_FIRE 2 #define TRAP_WATER 3 #define TRAP_ICE 4 #define TRAP_RAZOR 5 #define TRAP_GAS 6 #define TRAP_SPIKE 7 #define TRAP_STUN 8 typedef struct trap_t trap_t; struct trap_t { flag_t flags; flag_t type; int power; int charge_count; int level; }; #endif