#include <OOECMBlastEntity.h>
Definition at line 33 of file OOECMBlastEntity.h.
◆ drawImmediate:translucent:
| - (void) drawImmediate: |
|
(bool) |
immediate |
| translucent: |
|
(bool) |
translucent |
|
|
| |
|
implementation |
Reimplemented from Entity.
Definition at line 1 of file OOECMBlastEntity.m.
111 :(bool)immediate translucent:(bool)translucent
112{
113#if ECM_DEBUG_DRAW && OO_DEBUG
115#endif
116
117}
void OODebugDrawPoint(Vector position, OOColor *color)
◆ initFromShip:
Definition at line 1 of file OOECMBlastEntity.m.
49{
51 {
53 }
54 else if ((
self = [super
init]))
55 {
59
61
62 [self setStatus:STATUS_EFFECT];
63 [self setScanClass:CLASS_NO_DRAW];
64 }
65
66 return self;
67}
#define ECM_PULSE_INTERVAL
uint_fast8_t _blastsRemaining
◆ isECMBlast
◆ update:
Reimplemented from Entity.
Definition at line 1 of file OOECMBlastEntity.m.
71{
73 ShipEntity *ship = [_ship weakRefUnderlyingObject];
74 BOOL validShip = (ship !=
nil) && ([ship
status] != STATUS_DEAD);
75
77 {
78
82
83 NSArray *targets = [UNIVERSE findEntitiesMatchingPredicate:IsShipPredicate
84 parameter:NULL
85 inRange:radius
86 ofEntity:self];
87 NSUInteger i,
count = [targets count];
89 {
93
94 for (i = 0; i <
count; i++)
95 {
96 ShipEntity *target = [targets objectAtIndex:i];
97 ShipScriptEvent(context, target,
"shipHitByECM", ecmPulsesRemaining, whomVal);
100 }
101
103 }
105 }
106
108}
#define SCANNER_MAX_RANGE
OOINLINE jsval OOJSValueFromNativeObject(JSContext *context, id object)
OOINLINE JSContext * OOJSAcquireContext(void)
OOINLINE void OOJSRelinquishContext(JSContext *context)
#define ShipScriptEvent(context, ship, event,...)
void reactToAIMessage:context:(NSString *message,[context] NSString *debugContext)
◆ _blastsRemaining
| - (uint_fast8_t) _blastsRemaining |
|
private |
◆ _nextBlast
◆ _ship
The documentation for this class was generated from the following files: