bool GroupManager::isInGroup(std::string group, Entity& e) { //TODO ignore case //return strncasecmp(group, getGroupOf(e)) == 0; return group.compare(getGroupOf(e)) == 0; }
bool GroupManager::isInGroup(std::string group, const Entity &e) const { return group != "" && group == getGroupOf(e); }
bool GroupManager::isGrouped(Entity& e) { return !getGroupOf(e).empty(); }
bool GroupManager::isGrouped(const Entity &e) const { return getGroupOf(e) != ""; }