Package gaiasky.scene

Class AttributeMap

java.lang.Object
gaiasky.scene.AttributeMap

public class AttributeMap extends Object
Holds a map with the relations of old object attributes to contained component.
  • Constructor Details

    • AttributeMap

      public AttributeMap()
  • Method Details

    • get

      public Class<? extends com.badlogic.ashley.core.Component> get(String key)
      Returns the component class to which the specified key is mapped.
      Parameters:
      key - The key.
      Returns:
      The component class.
    • containsKey

      public boolean containsKey(String key)
      Checks whether the given key is in the attribute map.
      Parameters:
      key - The key.
      Returns:
      true if this map contains a mapping with the specified key.
    • initialize

      public Map<String,Class<? extends com.badlogic.ashley.core.Component>> initialize()