Пример #1
0
  @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);
 }