Definition at line 849 of file OOVisualEffectEntity.m.
◆ isShipWithSubEntityShip:
| - (BOOL) isShipWithSubEntityShip: |
|
(Entity*) | other |
|
|
implementation |
Extends class OOVisualEffectEntity.
Definition at line 852 of file OOVisualEffectEntity.m.
852 :(Entity*)other
853{
854 assert([self isVisualEffect]);
855
856 if (![other isVisualEffect])
857 return NO;
858 if (![other isSubEntity])
859 return NO;
860 if ([other owner] != self)
861 return NO;
862
863#ifndef NDEBUG
864
865 if (![self hasSubEntity:(OOVisualEffectEntity*)other]) {
866 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.");
868 return NO;
869 }
870#endif
871
872 return YES;
873}
#define OOLogERR(class, format,...)
void setOwner:(Entity *ent)
References OOLogERR, and Entity::setOwner:.
The documentation for this category was generated from the following file: