/** * Set the group of the entity. * * @param groups groups to add the entity into * @param e entity to add into the group */ public void add(Entity e, String... groups) { for (String group : groups) { add(e, group); } }
/** * Set the group of the entity. * * @param groups groups to add the entity into * @param e entity to add into the group */ public void add(Entity e, String... groups) { for (String group : groups) { add(e, group); } }
/** * Set the group of the entity. * * @param g1 group to add the entity into * @param g2 group to add the entity into * @param g3 group to add the entity into * @param e entity to add into the group */ public void add(Entity e, String g1, String g2, String g3) { add(e, g1); add(e, g2); add(e, g3); }
/** * Set the group of the entity. * * @param g1 group to add the entity into * @param g2 group to add the entity into * @param g3 group to add the entity into * @param e entity to add into the group */ public void add(Entity e, String g1, String g2, String g3) { add(e, g1); add(e, g2); add(e, g3); }
private JsonValue readGroups(JsonValue jsonData, Entity e) { if ("groups".equals(jsonData.name)) { JsonValue group = jsonData.child; while (group != null) { groupManager.add(e, group.asString()); group = group.next; } jsonData = jsonData.next; } return jsonData; }
private JsonValue readGroups(JsonValue jsonData, Entity e) { if ("groups".equals(jsonData.name)) { JsonValue group = jsonData.child; while (group != null) { groupManager.add(e, group.asString()); group = group.next; } jsonData = jsonData.next; } return jsonData; }
private JsonValue readGroups(JsonValue jsonData, Entity e) { if ("groups".equals(jsonData.name)) { JsonValue group = jsonData.child; while (group != null) { groupManager.add(e, group.asString()); group = group.next; } jsonData = jsonData.next; } return jsonData; }
public void add(final int entityId, String g1, String g2, String g3) { final Entity e = world.getEntity(entityId); add(e, g1, g2, g3); }
public void add(final int entityId, String g1, String g2) { final Entity e = world.getEntity(entityId); add(e, g1, g2); }
public void add(final int entityId, String... groups) { final Entity e = world.getEntity(entityId); add(e, groups); }
public void add(final int entityId, String group) { final Entity e = world.getEntity(entityId); add(e, group); }
public void add(final int entityId, String g1, String g2) { final Entity e = world.getEntity(entityId); add(e, g1, g2); }
public void add(final int entityId, String... groups) { final Entity e = world.getEntity(entityId); add(e, groups); }
public void add(final int entityId, String g1, String g2, String g3) { final Entity e = world.getEntity(entityId); add(e, g1, g2, g3); }
/** Register entity with group. Requires registered TagManager */ public EntityBuilder group(String group) { resolveManager(GroupManager.class).add(edit.getEntity(), group); return this; }
/** Register entity with group. Requires registered TagManager */ public EntityBuilder group(String group) { resolveManager(GroupManager.class).add(edit.getEntity(), group); return this; }
public E group(String group) { World w = mappers.getWorld(); w.getSystem(com.artemis.managers.GroupManager.class).add(w.getEntity(entityId), group); return this; }
public E group(String group) { World w = mappers.getWorld(); w.getSystem(com.artemis.managers.GroupManager.class).add(w.getEntity(entityId), group); return this; }