Oolite
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

Definition at line 1 of file ShipEntityAI.m.

2901 :(ShipEntity *)other
2902{
2903 if (self != [UNIVERSE station]) return;
2904
2905 OOWeakReference *old_target = _primaryTarget;
2906 _primaryTarget = [[[other primaryTarget] weakRetain] autorelease];
2907 [(ShipEntity *)[other primaryTarget] markAsOffender:8 withReason:kOOLegalStatusReasonDistressCall]; // mark their card
2908 [self launchDefenseShip];
2909 _primaryTarget = old_target;
2910
2911}
#define UNIVERSE
Definition Universe.h:842

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