Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOVisualEffectEntity(SubEntityRelationship) Category Reference

Instance Methods

(BOOL) - isShipWithSubEntityShip: [implementation]
 

Detailed Description

Definition at line 967 of file OOVisualEffectEntity.m.

Method Documentation

◆ isShipWithSubEntityShip:

- (BOOL) isShipWithSubEntityShip: (Entity *) other
implementation

Extends class OOVisualEffectEntity.

Definition at line 619 of file OOVisualEffectEntity.m.

970 :(Entity *)other
971{
972 assert ([self isVisualEffect]);
973
974 if (![other isVisualEffect]) return NO;
975 if (![other isSubEntity]) return NO;
976 if ([other owner] != self) return NO;
977
978#ifndef NDEBUG
979 // Sanity check; this should always be true.
980 if (![self hasSubEntity:(OOVisualEffectEntity *)other])
981 {
982 OOLogERR(@"visualeffect.subentity.sanityCheck.failed", @"%@ thinks it's a subentity of %@, but the supposed parent does not agree. %@", [other shortDescription], [self shortDescription], @"This is an internal error, please report it.");
983 [other setOwner:nil];
984 return NO;
985 }
986#endif
987
988 return YES;
989}
#define OOLogERR(class, format,...)
Definition OOLogging.h:112
void setOwner:(Entity *ent)
Definition Entity.m:576

The documentation for this category was generated from the following file: