Example usage for com.badlogic.gdx.utils ArrayMap keys

List of usage examples for com.badlogic.gdx.utils ArrayMap keys

Introduction

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

Prototype

K[] keys

To view the source code for com.badlogic.gdx.utils ArrayMap keys.

Click Source Link

Usage

From source file:com.vlaaad.dice.game.world.controllers.ViewController.java

License:Open Source License

public static WorldObjectView createView(Player viewer, PlayerColors colors, WorldObject object) {
    WorldObjectView view = new WorldObjectView();
    ArrayMap<Object, SubView> subViewArrayMap = object.createSubViews(viewer, colors);
    for (Object key : subViewArrayMap.keys()) {
        view.addSubView(key, subViewArrayMap.get(key));
    }/*  w w  w.j  av a 2s .com*/
    object.initView(view);
    return view;
}

From source file:com.vlaaad.dice.game.world.controllers.ViewController.java

License:Open Source License

public static void updateView(Player viewer, PlayerColors colors, WorldObject object, WorldObjectView view) {
    view.clearChildren();/*from   w  w  w.j av  a2 s  .  c o  m*/
    ArrayMap<Object, SubView> subViewArrayMap = object.createSubViews(viewer, colors);
    for (Object key : subViewArrayMap.keys()) {
        view.addSubView(key, subViewArrayMap.get(key));
    }
}