31#define kQuiriumCascadeDuration (20.0)
32#define kQuiriumCollisionDelay (0.05)
43 if ((
self = [super
init])) {
61 return [[[
self alloc] initQuiriumCascadeFromShip:ship] autorelease];
66 return [
NSString stringWithFormat:@"%f seconds passed of %f", _timePassed, kQuiriumCascadeDuration];
77 GLfloat stf = tf * tf;
78 GLfloat expansionSpeed = 0.0;
81 expansionSpeed = fmin(240.0f + 10.0f / (tf * tf), 1000.0f);
85 energy = delta_t * (100000 - 90000 * tf);
106 [UNIVERSE removeEntity:
self];
110- (void)drawImmediate:(
bool)immediate translucent:(
bool)translucent
112 if (!translucent || [
UNIVERSE breakPatternHide])
118 OOGL(glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT));
120 OOGL(glDisable(GL_CULL_FACE));
121 OOGL(glDisable(GL_TEXTURE_2D));
122 OOGL(glEnable(GL_BLEND));
123 OOGL(glBlendFunc(GL_SRC_ALPHA, GL_ONE));
151- (BOOL)checkCloseCollisionWith:(
Entity*)other
158@implementation Entity (OOQuiriumCascadeExtensions)
OOINLINE float OOClamp_0_1_f(float value) INLINE_CONST_FUNC
#define OO_ENTER_OPENGL()
OOMatrix OOMatrixForBillboard(HPVector bbPos, HPVector eyePos) CONST_FUNC
@ OPENGL_STATE_ADDITIVE_BLENDING
#define OOVerifyOpenGLState()
BOOL OOCheckOpenGLErrors(NSString *format,...)
void GLDrawBallBillboard(GLfloat radius, GLfloat step, GLfloat z_distance)
#define OOSetOpenGLState(STATE)
#define kQuiriumCascadeDuration
#define kQuiriumCollisionDelay
NSMutableArray * collidingEntities
void update:(OOTimeDelta delta_t)
void setOwner:(Entity *ent)
GLfloat cam_zero_distance
void takeEnergyDamage:from:becauseOf:weaponIdentifier:(double amount,[from] Entity *ent,[becauseOf] Entity *other,[weaponIdentifier] NSString *weaponIdentifier)
void setStatus:(OOEntityStatus stat)
void setPosition:(HPVector posn)
NSString * descriptionComponents()