⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tiledata.java

📁 monkeymahjongg,一个JME3D游戏的源代码
💻 JAVA
字号:
package jmetest.monkeymahjongg.game;
 
 import com.jme.util.export.JMEExporter;
 import com.jme.util.export.JMEImporter;
 import com.jme.util.export.Savable;
 import java.io.IOException;
 
 /**
 *
 *
 * @author Pirx
 */
 class TileData implements Savable {
 
 final private Coordinate c;
 final private int tileId;
 
 public TileData(int x, int y, int z, int tileId) {
 this.c = Coordinate.at(x, y, z);
 this.tileId = tileId;
 }
 
 public Coordinate getCoordinate() {
 return c;
 }
 
 public int getTileId() {
 return tileId;
 }
 
 public void write(JMEExporter ex) throws IOException {
 throw new UnsupportedOperationException("Not supported yet.");
 }
 
 public void read(JMEImporter im) throws IOException {
 throw new UnsupportedOperationException("Not supported yet.");
 }
 
 public Class<?> getClassTag() {
 throw new UnsupportedOperationException("Not supported yet.");
 }
 
 @Override
 public String toString() {
 return String.format("tile %d, %s", tileId, c);
 }
 
 public boolean matches(TileData that) {
 return (this.tileId ^ that.tileId) < 4;
 }
 
 @Override
 public boolean equals(Object o) {
 return (o instanceof TileData) ? tileId == ((TileData)o).tileId : false;
 }
 
 @Override
 public int hashCode() {
 return tileId;
 }
 
 }
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -