📄 playerstate.java
字号:
/*
* PlayerState.java
*
* Copyright (C) 2000 Jason M. Hanley
* Released under the GNU General Public License (GPL)
* See license.txt for additional information.
*
* Created on August 18, 2000, 11:19 PM
*/
package fate.server;
import java.io.*;
import fate.*;
import fate.world.*;
/**
* Stores player's current state in the virtual world.
*
* @author preylude@s3m.com
* @version 0.1.0
*/
public class PlayerState extends Object implements Serializable {
public static final int MAIN_VIEW_PLANETOID = 1;
public static final int MAIN_VIEW_SOLARSYSTEM = 2;
public static final int MAIN_VIEW_GALAXY = 3;
/** True if user is connected */
public boolean bConnected;
/** Type of main view we want to switch to */
public int viewType;
/** The id of the object that is being focused on */
public int idViewingObject;
/** ID number of the planetoid. */
public int idPlanetoid;
/** ID number of the solar system. */
public int idSolarSystem;
/** ID number of the galaxy. */
public int idGalaxy;
/** Creates new PlayerState */
public PlayerState() {
reset();
}
/** Resets state back to defaults */
public void reset() {
viewType = -1;
idViewingObject = -1;
idPlanetoid = -1;
idSolarSystem = -1;
idGalaxy = -1;
bConnected = false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -