Android Open Source - toyapp My Toy App






From Project

Back to project page toyapp.

License

The source code is released under:

Copyright (c) 2013, Chris Dawes All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * ...

If you think the Android project toyapp 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.advancedtelematic.toyapp;
/*from w ww .  j a  va2s. c  om*/
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Game;

public class MyToyApp extends Game {
    private MainScreen mainScreen;
    private AboutScreen aboutScreen;
    private GameScreen gameScreen;

    @Override
    public void create() {
        setScreen(getMainScreen());
    }

    public MainScreen getMainScreen() {
        if(mainScreen == null) {
            this.mainScreen = new MainScreen(this);
        }
        return mainScreen;
    }

    public AboutScreen getAboutScreen() {
        if(aboutScreen == null) {
            this.aboutScreen = new AboutScreen(this);
        }
        return aboutScreen;
    }

    public GameScreen getGameScreen() {
        if(gameScreen == null) {
            this.gameScreen = new GameScreen(this);
        }
        return gameScreen;
    }

}




Java Source Code List

com.advancedtelematic.toyapp.AboutScreen.java
com.advancedtelematic.toyapp.AbstractScreen.java
com.advancedtelematic.toyapp.DesktopStarter.java
com.advancedtelematic.toyapp.GameScreen.java
com.advancedtelematic.toyapp.MainScreen.java
com.advancedtelematic.toyapp.MyToyApp.java
com.advancedtelematic.toyapp.ToyHelloWorldActivity.java