public JsonArray add(java.lang.Object value) { JsonImpl.checkJsonType(value); list.add(value); return this; }
protected RoboPlatform(CGRect bounds, Config config) { super(new RoboLog()); this.config = config; bounds = bounds != null ? bounds : UIScreen.getMainScreen().getBounds(); graphics = new RoboGraphics(this, bounds); json = new JsonImpl(); keyboard = new RoboKeyboard(this); net = new RoboNet(this); pointer = new RoboPointer(this); touch = new RoboTouch(this); assets = new RoboAssets(this); storage = new RoboStorage(this); }
public AndroidPlatform (GameActivity activity) { this.activity = activity; log = new AndroidLog(activity.logIdent()); exec = new AndroidExec(this, activity) { @Override protected boolean isPaused () { return state == State.PAUSED; } }; audio = new AndroidAudio(this); graphics = new AndroidGraphics(this, activity.preferredBitmapConfig(), activity.scaleFactor()); assets = new AndroidAssets(this); json = new JsonImpl(); input = new AndroidInput(this); net = new AndroidNet(this); storage = new AndroidStorage(this); }
protected AndroidPlatform(GameActivity activity, AndroidGL20 gl20) { super(new AndroidLog(activity)); this.activity = activity; audio = new AndroidAudio(this); graphics = new AndroidGraphics(this, gl20, activity.preferredBitmapConfig()); assets = new AndroidAssets(this); json = new JsonImpl(); keyboard = new AndroidKeyboard(this); net = new AndroidNet(this, activity.webSocketDraft()); pointer = new AndroidPointer(); storage = new AndroidStorage(this); touch = new TouchImpl(); }
@Override public JsonObject put(String key, Object value) { JsonImpl.checkJsonType(value); map.put(key, value); return this; }
protected AndroidPlatform(GameActivity activity, AndroidGL20 gl20) { super(new AndroidLog(activity)); this.activity = activity; audio = new AndroidAudio(this); graphics = new AndroidGraphics(this, gl20, activity.preferredBitmapConfig()); assets = new AndroidAssets(this); json = new JsonImpl(); keyboard = new AndroidKeyboard(this); net = new AndroidNet(this, activity.webSocketDraft()); pointer = new AndroidPointer(); storage = new AndroidStorage(this); touch = new TouchImpl(); }
@Override public JsonObject put(String key, Object value) { JsonImpl.checkJsonType(value); map.put(key, value); return this; }
public JsonArray add(java.lang.Object value) { JsonImpl.checkJsonType(value); list.add(value); return this; }
public void add(java.lang.Object value) { JsonImpl.checkJsonType(value); list.add(value); }
@Override public void put(String key, Object value) { JsonImpl.checkJsonType(value); map.put(key, value); }
public void add(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() < index) list.add(null); list.add(index, value); }
@Override public void set(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() <= index) list.add(null); list.set(index, value); }
public JsonArray add(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() < index) list.add(null); list.add(index, value); return this; }
@Override public JsonArray set(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() <= index) list.add(null); list.set(index, value); return this; }
public JsonArray add(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() < index) list.add(null); list.add(index, value); return this; }
@Override public JsonArray set(int index, java.lang.Object value) { JsonImpl.checkJsonType(value); // TODO(mmastrac): Use an array rather than ArrayList to make this more efficient while (list.size() <= index) list.add(null); list.set(index, value); return this; }