コード例 #1
0
ファイル: SystemMapActivity.java プロジェクト: niavok/irr310
  @Override
  public void onCreate(Bundle bundle) {
    setContentView("main@layout/system_map/system_map");

    systemDetailsRelativeLayout =
        (RelativeLayout) findViewById("systemDetailsRelativeLayout@layout/system_map/system_map");

    mSystem = (WorldSystem) bundle.getObject();
    systemEngine = GameServer.getWorldEngine().getSystemEngine(mSystem);

    mSystemEngineObserver =
        new SystemEngineObserver() {

          @Override
          public void onDeployShip(Ship ship, TransformMatrix transform) {}

          @Override
          public void onDeployCelestialObject(
              CelestialObject celestialObject, TransformMatrix transform) {}
        };
  }
コード例 #2
0
 public NexusItem createNexus(Faction owner) {
   return new NexusItem(world, GameServer.pickNewId(), owner);
 }