001 package com.croftsoft.apps.insight;
002
003 /*********************************************************************
004 * Data for a kobold, goblin, or wall.
005 *
006 * @version
007 * 2002-03-02
008 * @since
009 * 2001-03-02
010 * @author
011 * <a href="https://www.croftsoft.com/">David Wallace Croft</a>
012 *********************************************************************/
013
014 public final class Thing
015 //////////////////////////////////////////////////////////////////////
016 //////////////////////////////////////////////////////////////////////
017 {
018
019 public int type;
020
021 public int x;
022
023 public int y;
024
025 public boolean isAlive;
026
027 //////////////////////////////////////////////////////////////////////
028 //////////////////////////////////////////////////////////////////////
029
030 public Thing (
031 int type,
032 int x,
033 int y )
034 //////////////////////////////////////////////////////////////////////
035 {
036 this.type = type;
037
038 this.x = x;
039
040 this.y = y;
041
042 isAlive = true;
043 }
044
045 public Thing ( int type )
046 //////////////////////////////////////////////////////////////////////
047 {
048 this ( type, 0, 0 );
049 }
050
051 //////////////////////////////////////////////////////////////////////
052 //////////////////////////////////////////////////////////////////////
053 }