Definition at line 967 of file OOVisualEffectEntity.m.
◆ isShipWithSubEntityShip:
- (BOOL) isShipWithSubEntityShip: |
|
(Entity *) | other |
|
|
implementation |
Extends class OOVisualEffectEntity.
Definition at line 619 of file OOVisualEffectEntity.m.
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
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.");
984 return NO;
985 }
986#endif
987
988 return YES;
989}
#define OOLogERR(class, format,...)
void setOwner:(Entity *ent)
The documentation for this category was generated from the following file: