Definition at line 14872 of file ShipEntity.m.
◆ isShipWithSubEntityShip:
- (BOOL) isShipWithSubEntityShip: |
|
(Entity *) | other |
|
|
implementation |
Extends class ShipEntity.
Definition at line 14073 of file ShipEntity.m.
14875{
14876 assert ([self isShip]);
14877
14878 if (![other isShip]) return NO;
14879 if (![other isSubEntity]) return NO;
14880 if ([other owner] != self) return NO;
14881
14882#ifndef NDEBUG
14883
14884 if (![
self hasSubEntity:(
ShipEntity *)other])
14885 {
14886 OOLogERR(
@"ship.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.");
14888 return NO;
14889 }
14890#endif
14891
14892 return YES;
14893}
#define OOLogERR(class, format,...)
void setOwner:(Entity *who_owns_entity)
The documentation for this category was generated from the following file: