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

📄 gamesavedata.java

📁 CreatLog luke 俄罗斯方块
💻 JAVA
字号:
package javagapi;import java.io.DataOutputStream;import java.io.DataInputStream;import java.io.IOException;/** Those classes in a game that will be saved by GameShell.GASaveNVData  * and loaded by GALoadNVData must implement this interface.  */interface GameSaveable {    /** Writes all the data in the implementing object to a      * DataOutputStream.      *      * @param dos the DataOutputStram to be written to.      *       * @returns true if the operation was successful,      *          false otherwise.      */    public void serialize(DataOutputStream dos) throws IOException;    /** Loads all the data from a DataInputStream into the      * implementing object.      *      * @param dos the DataOutputStram to be written to.      *       * @returns true if the operation was successful,      *          false otherwise.      */    public void unSerialize(DataInputStream dis) throws IOException;}

⌨️ 快捷键说明

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