?? gamesavedata.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 + -