50 if (param == NULL || param->
predicate == NULL)
return NO;
94 return (A || B) && !(A && B);
112 return [(id)parameter intValue] == [entity
scanClass];
118 return [entity isKindOfClass:(Class)parameter];
136 if (![entity isPlanet])
return NO;
144 return [entity
isSun];
168 return [[(
ShipEntity *)
ship roleSet] intersectsSet:(NSSet *)parameter];
174 return [(NSSet *)parameter containsObject:[(
ShipEntity *)
ship primaryRole]];
BOOL IsStationPredicate(Entity *entity, void *parameter)
BOOL NOPredicate(Entity *entity, void *parameter)
BOOL NANDPredicate(Entity *entity, void *parameter)
BOOL XORPredicate(Entity *entity, void *parameter)
BOOL ANDPredicate(Entity *entity, void *parameter)
BOOL NOTPredicate(Entity *entity, void *parameter)
BOOL IsSunPredicate(Entity *entity, void *parameter)
BOOL HasScanClassPredicate(Entity *entity, void *parameter)
BOOL IsHostileAgainstTargetPredicate(Entity *ship, void *parameter)
BOOL HasPrimaryRolePredicate(Entity *ship, void *parameter)
BOOL IsShipPredicate(Entity *entity, void *parameter)
BOOL IsPlanetPredicate(Entity *entity, void *parameter)
BOOL HasRolePredicate(Entity *ship, void *parameter)
BOOL IsVisualEffectPredicate(Entity *entity, void *parameter)
BOOL ORPredicate(Entity *entity, void *parameter)
BOOL NORPredicate(Entity *entity, void *parameter)
BOOL HasClassPredicate(Entity *entity, void *parameter)
BOOL HasRoleInSetPredicate(Entity *ship, void *parameter)
BOOL YESPredicate(Entity *entity, void *parameter)
BOOL HasPrimaryRoleInSetPredicate(Entity *ship, void *parameter)
@ STELLAR_TYPE_NORMAL_PLANET
EntityFilterPredicate predicate1
EntityFilterPredicate predicate2
EntityFilterPredicate predicate