public class ComponentTypeFactory extends Object
| Constructor and Description |
|---|
ComponentTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndexFor(Class<? extends Component> c)
Get the index of the component type of given component class.
|
protected com.artemis.ComponentType.Taxonomy |
getTaxonomy(int index) |
ComponentType |
getTypeFor(Class<? extends Component> c)
Gets the component type for the given component class.
|
ComponentType |
getTypeFor(int index)
Gets the component type for the given component class.
|
protected boolean |
isPackedComponent(int index) |
public ComponentType getTypeFor(Class<? extends Component> c)
If no component type exists yet, a new one will be created and stored for later retrieval.
c - the component's class to get the type forComponentTypepublic ComponentType getTypeFor(int index)
c - the component's class to get the type forComponentTypepublic int getIndexFor(Class<? extends Component> c)
c - the component class to get the type index forprotected com.artemis.ComponentType.Taxonomy getTaxonomy(int index)
protected boolean isPackedComponent(int index)
Copyright © 2014. All Rights Reserved.