use of com.ilargia.games.logicbrick.component.View in project Entitas-Java by Rubentxu.
the class CoreEntity method addView.
public CoreEntity addView(Shape2D shape) {
View component = (View) recoverComponent(CoreComponentsLookup.View);
if (component == null) {
component = new View(shape);
} else {
component.shape = shape;
}
addComponent(CoreComponentsLookup.View, component);
return this;
}
Aggregations