Android Open Source - FloppyThreeD I O S Interface






From Project

Back to project page FloppyThreeD.

License

The source code is released under:

MIT License

If you think the Android project FloppyThreeD listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.jtechapps.FloppyThreeD;
/*from ww w.  ja  va2  s  . co  m*/
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.BitmapFont;

public class IOSInterface implements NativeInterface {
  private AssetManager am = null;
  private BitmapFont font1 = null;

  @Override
  public void garbagecollect() {
    for(int i = 0; i <10; i++){
      Runtime.getRuntime().gc();
    }
  }

  @Override
  public void dispose() {
    if(am!=null)
      am.dispose();
    if(font1!=null)
      font1.dispose();
  }
  
  @Override
  public void setAssetManger(AssetManager assetmanager) {
    am = assetmanager;
  }

  @Override
  public AssetManager getAssetManger() {
    return am;
  }
  
  @Override
  public void setFont1(BitmapFont font) {
    font1 = font;
  }

  @Override
  public BitmapFont getFont1() {
    return font1;
  }

}




Java Source Code List

com.jtechapps.FloppyThreeD.FloppyGame.java
com.jtechapps.FloppyThreeD.IOSInterface.java
com.jtechapps.FloppyThreeD.IOSLauncher.java
com.jtechapps.FloppyThreeD.NativeInterface.java
com.jtechapps.FloppyThreeD.ScoreManager.java
com.jtechapps.FloppyThreeD.SettingsManager.java
com.jtechapps.FloppyThreeD.Screens.AboutScreen.java
com.jtechapps.FloppyThreeD.Screens.ClassicGameScreen.java
com.jtechapps.FloppyThreeD.Screens.FirstPersonScreen.java
com.jtechapps.FloppyThreeD.Screens.MainMenuScreen.java
com.jtechapps.FloppyThreeD.Screens.SettingsScreen.java
com.jtechapps.FloppyThreeD.android.AndroidInterface.java
com.jtechapps.FloppyThreeD.android.AndroidLauncher.java
com.jtechapps.FloppyThreeD.client.HtmlInterface.java
com.jtechapps.FloppyThreeD.client.HtmlLauncher.java
com.jtechapps.FloppyThreeD.desktop.DesktopAdapter.java
com.jtechapps.FloppyThreeD.desktop.DesktopInterface.java
com.jtechapps.FloppyThreeD.desktop.DesktopLauncher.java