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

📄 player.java

📁 Massively Multiplayer Space Trading and Combat game. This is an online strategy game, not a 3D space
💻 JAVA
字号:
/*
 * Player.java
 *
 * Copyright (C) 2000 Jason M. Hanley
 * Released under the GNU General Public License (GPL)
 * See license.txt for additional information.
 *
 * Created on August 6, 2000, 7:25 PM
 */
 
package fate.world;

import java.io.*;

import fate.*;
import fate.util.*;

/** 
 * Represents a Player in the world.  Players can own {@link SpaceStructure}
 * objects, {@link GroundStructure} objects, and more.
 *
 * @author  preylude@s3m.com
 * @version 0.1.0
 */
public class Player extends WorldObject implements Serializable {

  /** All the ships this player owns */
  public MapWorldObject mapShips;
  
  /** All the structures this player owns */
  public MapWorldObject mapStructures;
  
  /** Corresponding login ID */
  int idLogin;
  
  /** Creates new Player */
  public Player() {
    super();
    
    mapShips = new MapWorldObject();
    mapStructures = new MapWorldObject();
    
  }

  /** Creates a clone suitable for sending from server to client */
  public Player cloneForClient() {
    Player clonedObject = null;
    try {
      clonedObject = (Player)this.clone();
    } catch( CloneNotSupportedException e ) {
      Debug.trace( "Error: can't clone object" );
    }
    clonedObject.parent = null;
    
    return clonedObject;
  }
}

⌨️ 快捷键说明

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