/** * Checks if the entity belongs to any group. * * @param e the entity to check * @return true. if it is in any group, false if none */ public boolean isInAnyGroup(Entity e) { return getGroups(e).size() > 0; }
/** * Checks if the entity belongs to any group. * * @param e the entity to check * @return true. if it is in any group, false if none */ public boolean isInAnyGroup(Entity e) { return getGroups(e).size() > 0; }
public ImmutableBag<String> getGroups(final int entityId) { final Entity e = world.getEntity(entityId); return getGroups(e); }
public ImmutableBag<String> getGroups(final int entityId) { final Entity e = world.getEntity(entityId); return getGroups(e); }
public ImmutableBag<String> groups() { World w = mappers.getWorld(); return w.getSystem(com.artemis.managers.GroupManager.class).getGroups(w.getEntity(entityId)); }
public ImmutableBag<String> groups() { World w = mappers.getWorld(); return w.getSystem(com.artemis.managers.GroupManager.class).getGroups(w.getEntity(entityId)); }
private void writeGroups(Json json, Entity e) { if (groupManager == null) return; ImmutableBag<String> groups = groupManager.getGroups(e); if (groups.size() == 0) return; json.writeArrayStart("groups"); for (String group : groups) { json.writeValue(group); } json.writeArrayEnd(); }
private void writeGroups(Json json, Entity e) { if (groupManager == null) return; ImmutableBag<String> groups = groupManager.getGroups(e); if (groups.size() == 0) return; json.writeArrayStart("groups"); for (String group : groups) { json.writeValue(group); } json.writeArrayEnd(); }
private void writeGroups(Json json, Entity e) { if (groupManager == null) return; ImmutableBag<String> groups = groupManager.getGroups(e); if (groups.size() == 0) return; json.writeArrayStart("groups"); for (String group : groups) { json.writeValue(group); } json.writeArrayEnd(); }
output.writeInt(0); } else { ImmutableBag<String> groups = groupManager.getGroups(e); if (groups.size() == 0) { output.writeInt(0);
output.writeInt(0); } else { ImmutableBag<String> groups = groupManager.getGroups(e); if (groups.size() == 0) { output.writeInt(0);