1*1c7f94e5Sjsm /* $NetBSD: def.edog.h,v 1.5 2003/04/02 18:36:33 jsm Exp $ */ 23ea4a95cSchristos 302ded532Smycroft /* 4*1c7f94e5Sjsm * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, 5*1c7f94e5Sjsm * Amsterdam 6*1c7f94e5Sjsm * All rights reserved. 7*1c7f94e5Sjsm * 8*1c7f94e5Sjsm * Redistribution and use in source and binary forms, with or without 9*1c7f94e5Sjsm * modification, are permitted provided that the following conditions are 10*1c7f94e5Sjsm * met: 11*1c7f94e5Sjsm * 12*1c7f94e5Sjsm * - Redistributions of source code must retain the above copyright notice, 13*1c7f94e5Sjsm * this list of conditions and the following disclaimer. 14*1c7f94e5Sjsm * 15*1c7f94e5Sjsm * - Redistributions in binary form must reproduce the above copyright 16*1c7f94e5Sjsm * notice, this list of conditions and the following disclaimer in the 17*1c7f94e5Sjsm * documentation and/or other materials provided with the distribution. 18*1c7f94e5Sjsm * 19*1c7f94e5Sjsm * - Neither the name of the Stichting Centrum voor Wiskunde en 20*1c7f94e5Sjsm * Informatica, nor the names of its contributors may be used to endorse or 21*1c7f94e5Sjsm * promote products derived from this software without specific prior 22*1c7f94e5Sjsm * written permission. 23*1c7f94e5Sjsm * 24*1c7f94e5Sjsm * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 25*1c7f94e5Sjsm * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 26*1c7f94e5Sjsm * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 27*1c7f94e5Sjsm * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 28*1c7f94e5Sjsm * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 29*1c7f94e5Sjsm * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 30*1c7f94e5Sjsm * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 31*1c7f94e5Sjsm * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 32*1c7f94e5Sjsm * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 33*1c7f94e5Sjsm * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 34*1c7f94e5Sjsm * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35*1c7f94e5Sjsm */ 36*1c7f94e5Sjsm 37*1c7f94e5Sjsm /* 38*1c7f94e5Sjsm * Copyright (c) 1982 Jay Fenlason <hack@gnu.org> 39*1c7f94e5Sjsm * All rights reserved. 40*1c7f94e5Sjsm * 41*1c7f94e5Sjsm * Redistribution and use in source and binary forms, with or without 42*1c7f94e5Sjsm * modification, are permitted provided that the following conditions 43*1c7f94e5Sjsm * are met: 44*1c7f94e5Sjsm * 1. Redistributions of source code must retain the above copyright 45*1c7f94e5Sjsm * notice, this list of conditions and the following disclaimer. 46*1c7f94e5Sjsm * 2. Redistributions in binary form must reproduce the above copyright 47*1c7f94e5Sjsm * notice, this list of conditions and the following disclaimer in the 48*1c7f94e5Sjsm * documentation and/or other materials provided with the distribution. 49*1c7f94e5Sjsm * 3. The name of the author may not be used to endorse or promote products 50*1c7f94e5Sjsm * derived from this software without specific prior written permission. 51*1c7f94e5Sjsm * 52*1c7f94e5Sjsm * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 53*1c7f94e5Sjsm * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 54*1c7f94e5Sjsm * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 55*1c7f94e5Sjsm * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 56*1c7f94e5Sjsm * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 57*1c7f94e5Sjsm * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 58*1c7f94e5Sjsm * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 59*1c7f94e5Sjsm * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 60*1c7f94e5Sjsm * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 61*1c7f94e5Sjsm * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 6202ded532Smycroft */ 6361f28255Scgd 643ea4a95cSchristos #ifndef _DEF_EDOG_H_ 653ea4a95cSchristos #define _DEF_EDOG_H_ 6661f28255Scgd struct edog { 6761f28255Scgd long hungrytime; /* at this time dog gets hungry */ 6861f28255Scgd long eattime; /* dog is eating */ 6961f28255Scgd long droptime; /* moment dog dropped object */ 7061f28255Scgd unsigned dropdist; /* dist of drpped obj from @ */ 7161f28255Scgd unsigned apport; /* amount of training */ 7261f28255Scgd long whistletime; /* last time he whistled */ 7361f28255Scgd }; 7461f28255Scgd #define EDOG(mp) ((struct edog *)(&(mp->mextra[0]))) 753ea4a95cSchristos 763ea4a95cSchristos #endif /* _DEF_EDOG_H_ */ 77