thing.java
来自「Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的」· Java 代码 · 共 53 行
JAVA
53 行
package com.croftsoft.apps.insight;
/*********************************************************************
* Data for a kobold, goblin, or wall.
*
* @version
* 2002-03-02
* @since
* 2001-03-02
* @author
* <a href="http://www.croftsoft.com/">David Wallace Croft</a>
*********************************************************************/
public final class Thing
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
{
public int type;
public int x;
public int y;
public boolean isAlive;
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
public Thing (
int type,
int x,
int y )
//////////////////////////////////////////////////////////////////////
{
this.type = type;
this.x = x;
this.y = y;
isAlive = true;
}
public Thing ( int type )
//////////////////////////////////////////////////////////////////////
{
this ( type, 0, 0 );
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?