Oolite
Loading...
Searching...
No Matches
StationEntity(OOAIPrivate) Category Reference

Instance Methods

(void) - acceptDistressMessageFrom:

Detailed Description

Definition at line 62 of file ShipEntityAI.m.

Method Documentation

◆ acceptDistressMessageFrom:

- (void) acceptDistressMessageFrom: (ShipEntity*) other

Extends class StationEntity.

Definition at line 2532 of file ShipEntityAI.m.

2532 :(ShipEntity*)other
2533{
2534 if (self != [UNIVERSE station])
2535 return;
2536
2537 OOWeakReference* old_target = _primaryTarget;
2538 _primaryTarget = [[[other primaryTarget] weakRetain] autorelease];
2539 [(ShipEntity*)[other primaryTarget] markAsOffender:8 withReason:kOOLegalStatusReasonDistressCall]; // mark their card
2540 [self launchDefenseShip];
2541 _primaryTarget = old_target;
2542}
#define UNIVERSE
Definition Universe.h:827
void markAsOffender:withReason:(int offence_value,[withReason] OOLegalStatusReason reason)

References StationEntity::launchDefenseShip, ShipEntity::markAsOffender:withReason:, ShipEntity::primaryTarget, and UNIVERSE.

Here is the call graph for this function:

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