use of ilargia.entitas.components.View in project Entitas-Java by Rubentxu.
the class EntityTest method setUp.
@Before
public void setUp() throws Exception {
createCollections();
_componentPools = new Stack[10];
EntitasCache cache = new EntitasCache();
entity = new TestEntity();
entity.initialize(0, 10, _componentPools, new ContextInfo("Test", TestComponentIds.componentNames(), TestComponentIds.componentTypes()));
entity.clearEventsListener();
entity.reactivate(0);
entity.addComponent(TestComponentIds.Position, new Position(100, 100));
entity.addComponent(TestComponentIds.View, new View(1));
}
use of ilargia.entitas.components.View in project Entitas-Java by Rubentxu.
the class GroupTest method setUp.
@Before
public void setUp() throws Exception {
createCollections();
entity = new TestEntity();
entity.initialize(0, 10, new Stack[10], new ContextInfo("Test", TestComponentIds.componentNames(), TestComponentIds.componentTypes()), null);
entity.clearEventsListener();
entity.reactivate(0);
entity.addComponent(TestComponentIds.Position, new Position(100, 100));
entity.addComponent(TestComponentIds.View, new View(1));
group = new Group<TestEntity>(TestMatcher.Position(), TestEntity.class);
group2 = new Group(TestMatcher.Interactive(), Entity.class);
}
Aggregations