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

📄 serimodel.java

📁 CroftSoft Code Library是一个开源的可移植的纯Java游戏库
💻 JAVA
字号:
     package com.croftsoft.apps.mars.model.seri;     import java.io.Serializable;     import com.croftsoft.apps.mars.model.Model;     /*********************************************************************     * The base abstract class for a game world object Model.     *     * @version     *   2003-04-16     * @since     *   2003-03-30     * @author     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>     *********************************************************************/     public abstract class  SeriModel       implements Comparable, Model, Serializable     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     {     private static final long  serialVersionUID = 0L;     //////////////////////////////////////////////////////////////////////     // interface Comparable method     //////////////////////////////////////////////////////////////////////     public int  compareTo ( Object  other )     //////////////////////////////////////////////////////////////////////     {       double  otherZ = ( ( Model ) other ).getZ ( );       double  z = getZ ( );       if ( z < otherZ )       {         return -1;       }       if ( z > otherZ )       {         return 1;       }       return 0;     }     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     }

⌨️ 快捷键说明

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