Example usage for com.badlogic.gdx.utils Logger Logger

List of usage examples for com.badlogic.gdx.utils Logger Logger

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils Logger Logger.

Prototype

public Logger(String tag, int level) 

Source Link

Usage

From source file:com.siondream.core.animation.SpriteAnimationData.java

License:Apache License

/**
 * @param loggingLevel verbosity of the animation data logging
 */
public SpriteAnimationData() {
    logger = new Logger("Animation", Env.debugLevel);
}

From source file:com.siondream.core.animation.SpriteAnimationLoader.java

License:Apache License

/**
 * Creates a new AnimationLoader/*from   ww w .j  ava  2  s.  c  om*/
 * 
 * @param resolver file resolver to be used
 */
public SpriteAnimationLoader(FileHandleResolver resolver) {
    super(resolver);

    animationData = null;
    logger = new Logger("Animation", Env.debugLevel);
}

From source file:com.siondream.core.LanguageManager.java

License:Apache License

/**
 * Will load the folder + / + language + .csv file
 * /*ww w  .j  a  v  a  2  s .c o m*/
 * @param folder
 * @param language
 * @param loggingLevel
 */
public LanguageManager(String folder, String language) {
    this.logger = new Logger(TAG, Env.debugLevel);
    this.folder = folder;
    this.languageName = language;

    if (!loadLanguage(languageName) && !languageName.equals(DEFAULT_LANGUAGE)) {
        loadLanguage(DEFAULT_LANGUAGE);
    }
}

From source file:com.siondream.core.physics.MapBodyManager.java

License:Open Source License

/**
 * @param world box2D world to work with.
 * @param unitsPerPixel conversion ratio from pixel units to box2D metres.
 * @param materialsFile json file with specific physics properties to be assigned to newly created bodies.
 * @param loggingLevel verbosity of the embedded logger.
 *///  www  .  j av  a 2  s  .  com
public MapBodyManager(World world, float unitsPerPixel, FileHandle materialsFile, int loggingLevel) {
    logger = new Logger("MapBodyManager", loggingLevel);
    logger.info("initialising");

    this.world = world;
    this.units = unitsPerPixel;

    FixtureDef defaultFixture = new FixtureDef();
    defaultFixture.density = 1.0f;
    defaultFixture.friction = 0.8f;
    defaultFixture.restitution = 0.0f;

    materials.put("default", defaultFixture);

    if (materialsFile != null) {
        loadMaterialsFile(materialsFile);
    }
}

From source file:com.siondream.core.physics.PhysicsLoader.java

License:Apache License

public PhysicsLoader(FileHandleResolver resolver) {
    super(resolver);
    logger = new Logger("Physics", Env.debugLevel);
}

From source file:net.mwplay.cocostudio.ui.AMScreen.java

License:Apache License

@Override
public void show() {
    super.show();
    layout = new GlyphLayout();
    font = new NativeFont(new NativeFontPaint(25));
    font.appendText("...0123456789%");
    font.setColor(Color.BLACK);/*  w w w . j av a  2 s . co m*/
    layout.setText(font, "...100%");

    stage = new Stage(new StretchViewport(1280, 720));

    assetManager = new AssetManager();
    assetManager.setLogger(new Logger("log", Logger.DEBUG));
    assetManager.setLoader(CocosScene.class, new CocosLoader(new InternalFileHandleResolver()));
    assetManager.load("mainscene/MenuScene.json", CocosScene.class);
}