Example usage for com.badlogic.gdx.utils IntMap values

List of usage examples for com.badlogic.gdx.utils IntMap values

Introduction

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

Prototype

public Values<V> values() 

Source Link

Document

Returns an iterator for the values in the map.

Usage

From source file:com.ridiculousRPG.ui.MessagingService.java

License:Apache License

public void removePicture(int posZkey) {
    IntMap<PictureRef> pictures = msgData.get().pictures;
    if (posZkey == -1) {
        for (PictureRef pic : pictures.values()) {
            pic.textureRegion.dispose();
        }//from www  .  j a  va 2 s  . co m
        pictures.clear();
    } else {
        PictureRef pRef = pictures.remove(posZkey);
        if (pRef != null)
            pRef.textureRegion.dispose();
    }
}