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

📄 galaxy.java

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

import java.io.*;

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

/** 
 * Represents a galaxy of solar systems.
 *
 * @author  preylude@s3m.com
 * @version 0.1.0
 */
public class Galaxy extends OrbitingBody implements Serializable {

  /** Map of all solar systems in the galaxy */
  public MapWorldObject mapSolarSystems;

  /** Creates new Galaxy */
  public Galaxy() {
    super();
   
    mapSolarSystems = new MapWorldObject();
  }
  
  /** Creates a clone suitable for sending from server to client */
  public Galaxy cloneForClient() {
    Galaxy clonedObject = null;

    try {
      clonedObject = (Galaxy)this.clone();
    } catch( CloneNotSupportedException e ) {
      Debug.trace( "Error: can't clone object" );
    }
    
    // We don't want to send the whole Universe
    clonedObject.parent = null;
    clonedObject.mapSolarSystems = null;
    
    return clonedObject;
  }
}

⌨️ 快捷键说明

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