@Test public void testRemoveScene() throws Exception { Game theGame = new Game(); theGame.defaultSceneProperty().set("test"); theGame.removeScene("scene1"); assertEquals("test", theGame.defaultSceneProperty().get()); theGame.removeScene("test"); assertNull(theGame.defaultSceneProperty().get()); }
public void removeScene(String aSceneName) { if (aSceneName.equals(defaultScene.get())) { defaultScene.set(null); } scenes.remove(aSceneName); }
Game implements Reflectable { public void removeScene(String aSceneName) { if (aSceneName.equals(defaultScene.get())) { defaultScene.set(null); } scenes.remove(aSceneName); } }
Game implements Reflectable { public void removeScene(String aSceneName) { if (aSceneName.equals(defaultScene.get())) { defaultScene.set(null); } scenes.remove(aSceneName); } Game(); }
Game implements Reflectable { public void removeScene(String aSceneName) { if (aSceneName.equals(defaultScene.get())) { defaultScene.set(null); } scenes.remove(aSceneName); } Game(); @ReflectiveField Property<String> nameProperty(); @ReflectiveField Property<String> defaultSceneProperty(); @ReflectiveField Property<Boolean> enableWebGLProperty(); @ReflectiveField Property<Boolean> enableDebugProperty(); @ReflectiveField Property<Boolean> enableNetworkingProperty(); @ReflectiveField Property<String> fireBaseURLProperty(); void removeScene(String aSceneName); String[] getKnownScenes(); @ReflectiveField Property<CustomProperties> customPropertiesProperty(); @Override GameClassInformation getClassInformation(); Map<String, Object> serialize(); static Game deserialize(Map<String, Object> aSerializedData); }
Game implements Reflectable { public void removeScene(String aSceneName) { if (aSceneName.equals(defaultScene.get())) { defaultScene.set(null); } scenes.remove(aSceneName); } Game(); @ReflectiveField Property<String> nameProperty(); @ReflectiveField Property<String> defaultSceneProperty(); @ReflectiveField Property<Boolean> enableWebGLProperty(); @ReflectiveField Property<Boolean> enableDebugProperty(); @ReflectiveField Property<Boolean> enableNetworkingProperty(); @ReflectiveField Property<String> fireBaseURLProperty(); void removeScene(String aSceneName); String[] getKnownScenes(); @ReflectiveField Property<CustomProperties> customPropertiesProperty(); @Override GameClassInformation getClassInformation(); Map<String, Object> serialize(); static Game deserialize(Map<String, Object> aSerializedData); static final String NAME_PROPERTY; static final String DEFAULT_SCENE_PROPERTY; static final String ENABLE_WEB_GL_PROPERTY; static final String CUSTOM_PROPERTIES_PROPERTY; static final String ENABLE_DEBUG_PROPERTY; static final String ENABLE_NETWORKING_PROPERTY; static final String FIREBASE_URL; }