public class AttributeMap
extends Object
-
Constructor Summary 
Constructors
-
Method Summary 
boolean
Checks whether the given key is in the attribute map.
Class<? extends com.badlogic.ashley.core.Component>
Returns the component class to which the specified key is mapped.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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()