Oolite 1.91.0.7644-241112-7f5034b
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:833

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