Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
StationEntity(OOAIPrivate) Category Reference

Instance Methods

(void) - acceptDistressMessageFrom:
 

Detailed Description

Definition at line 65 of file ShipEntityAI.m.

Method Documentation

◆ acceptDistressMessageFrom:

- (void) acceptDistressMessageFrom: (ShipEntity *) other

Extends class StationEntity.

Definition at line 1 of file ShipEntityAI.m.

2908 :(ShipEntity *)other
2909{
2910 if (self != [UNIVERSE station]) return;
2911
2912 OOWeakReference *old_target = _primaryTarget;
2913 _primaryTarget = [[[other primaryTarget] weakRetain] autorelease];
2914 [(ShipEntity *)[other primaryTarget] markAsOffender:8 withReason:kOOLegalStatusReasonDistressCall]; // mark their card
2915 [self launchDefenseShip];
2916 _primaryTarget = old_target;
2917
2918}
#define UNIVERSE
Definition Universe.h:840

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