31#define kRingDuration (2.0f)
32#define kRingAttack (0.4f)
35#define kInnerRingInitialSizeFactor (0.5f)
36#define kOuterRingInitialSizeFactor (1.25f * kInnerRingInitialSizeFactor)
37#define kInnerRingGrowthRateFactor (1.1f * kInnerRingInitialSizeFactor)
38#define kOuterRingGrowthRateFactor (1.25f * kInnerRingInitialSizeFactor)
41#define kShrinkingRingInnerGrowthFactor (-2.5)
42#define kShrinkingRingOuterGrowthFactor (-2.0)
65- (id) initRingFromEntity:(
Entity *)sourceEntity
67 if (sourceEntity ==
nil)
73 if ((
self = [super
init]))
95+ (instancetype) ringFromEntity:(
Entity *)sourceEntity
97 return [[[
self alloc] initRingFromEntity:sourceEntity] autorelease];
101+ (instancetype) shrinkingRingFromEntity:(
Entity *)sourceEntity
115 return [
NSString stringWithFormat:@"%f seconds passed of %f", _timePassed, kRingDuration];
129 [UNIVERSE removeEntity:
self];
134- (void) drawImmediate:(
bool)immediate translucent:(
bool)translucent
136 if (!translucent || [
UNIVERSE breakPatternHide])
return;
143 GLfloat ex_em_hi[4] = {0.6, 0.8, 1.0, alpha};
144 GLfloat ex_em_lo[4] = {0.2, 0.0, 1.0, 0.0};
149 glColor4fv(ex_em_lo);
151 glColor4fv(ex_em_hi);
#define OO_ENTER_OPENGL()
@ OPENGL_STATE_ADDITIVE_BLENDING
#define OOVerifyOpenGLState()
BOOL OOCheckOpenGLErrors(NSString *format,...)
#define OOSetOpenGLState(STATE)
static struct @114234231373144364274312201276352366175106111125 sCircleVerts[kCircleSegments]
#define kOuterRingGrowthRateFactor
#define kInnerRingGrowthRateFactor
#define kShrinkingRingInnerGrowthFactor
#define kOuterRingInitialSizeFactor
#define kInnerRingInitialSizeFactor
#define kShrinkingRingOuterGrowthFactor
void setVelocity:(Vector vel)
void setOrientation:(Quaternion quat)
void update:(OOTimeDelta delta_t)
GLfloat collisionRadius()
void setOwner:(Entity *ent)
void setScanClass:(OOScanClass sClass)
void setStatus:(OOEntityStatus stat)
void setPosition:(HPVector posn)
instancetype ringFromEntity:(Entity *sourceEntity)
NSString * descriptionComponents()