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

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

Introduction

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

Prototype

public IntFloatMap() 

Source Link

Document

Creates a new map with an initial capacity of 32 and a load factor of 0.8.

Usage

From source file:com.forerunnergames.peril.client.input.GdxKeyRepeatSystem.java

License:Open Source License

public GdxKeyRepeatSystem(final Input input, final KeyRepeatListener listener) {
    Arguments.checkIsNotNull(input, "input");
    Arguments.checkIsNotNull(listener, "listener");

    this.input = input;
    this.listener = listener;
    keyRepeatTimer = new Timer();
    keyRepeatTasks = new IntMap<>();
    repeatingKeys = new IntArray();
    keyRepeatRates = new IntFloatMap();
    keyRepeatStartDelays = new IntFloatMap();
    currentRepeatingKeyTask = null;/*from  w  w  w.  j  a v a 2 s .  co m*/
    currentRepeatingGdxKeyCode = 0;
    currentRepeatingKeyIndex = 0;
}

From source file:me.scarlet.undertailor.engine.overworld.WorldRoom.java

License:Open Source License

public WorldRoom(Tilemap map) {
    this.destroyed = false;
    this.prepared = false;
    this.events = new EventHelper(this);
    this.bodyQueue = new ObjectSet<>();
    this.entrypointQueue = new ObjectSet<>();

    this.tilemap = map;
    this.controller = null;
    this.obj = new ObjectSet<>();
    this.entrypoints = new ObjectMap<>();
    this.opacityMapping = new IntFloatMap();
    this.collisionLayers = new ObjectMap<>();
    this.renderOrder = new Array<>(true, 16);
    this.disabledCollision = new ObjectSet<>();
}