#include <OOQuiriumCascadeEntity.h>
Definition at line 31 of file OOQuiriumCascadeEntity.h.
◆ canCollide
◆ checkCloseCollisionWith:
| - (BOOL) checkCloseCollisionWith: |
|
(Entity *) |
other |
|
|
implementation |
◆ descriptionComponents
| - (NSString *) descriptionComponents |
|
|
|
|
implementation |
Reimplemented from Entity.
Definition at line 1 of file OOQuiriumCascadeEntity.m.
71{
72 return [NSString stringWithFormat:@"%f seconds passed of %f", _timePassed, kQuiriumCascadeDuration];
73}
◆ drawImmediate:translucent:
| - (void) drawImmediate: |
|
(bool) |
immediate |
| translucent: |
|
(bool) |
translucent |
|
|
| |
|
implementation |
Reimplemented from Entity.
Definition at line 1 of file OOQuiriumCascadeEntity.m.
121 :(bool)immediate translucent:(bool)translucent
122{
123 if (!translucent || [
UNIVERSE breakPatternHide])
return;
124
127
128 OOGL(glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT));
129
130 OOGL(glDisable(GL_CULL_FACE));
131 OOGL(glDisable(GL_TEXTURE_2D));
132 OOGL(glEnable(GL_BLEND));
133 OOGL(glBlendFunc(GL_SRC_ALPHA, GL_ONE));
134
139
141
144}
#define OO_ENTER_OPENGL()
@ OPENGL_STATE_ADDITIVE_BLENDING
#define OOVerifyOpenGLState()
BOOL OOCheckOpenGLErrors(NSString *format,...)
void GLDrawBallBillboard(GLfloat radius, GLfloat step, GLfloat z_distance)
#define OOSetOpenGLState(STATE)
GLfloat cam_zero_distance
◆ initQuiriumCascadeFromShip:
| - (id) initQuiriumCascadeFromShip: |
|
(ShipEntity *) |
ship |
|
|
implementation |
Definition at line 1 of file OOQuiriumCascadeEntity.m.
39{
41 {
42 [self release];
44 }
45
46 if ((
self = [super
init]))
47 {
49
50 [self setStatus:STATUS_EFFECT];
52
53 [
self setOwner:[ship
owner]];
54
55
58 }
59
60 return self;
61}
◆ isCascadeWeapon
◆ isEffect
◆ quiriumCascadeFromShip:
| + (instancetype) quiriumCascadeFromShip: |
|
(ShipEntity *) |
ship |
|
Definition at line 1 of file OOQuiriumCascadeEntity.m.
65{
66 return [[[self alloc] initQuiriumCascadeFromShip:ship] autorelease];
67}
◆ update:
Reimplemented from Entity.
Definition at line 1 of file OOQuiriumCascadeEntity.m.
77{
78 [super update:delta_t];
80
82
84 GLfloat stf = tf * tf;
85 GLfloat expansionSpeed = 0.0;
87 {
88 expansionSpeed = fmin(240.0f + 10.0f / (tf * tf), 1000.0f);
89 }
90
92 energy = delta_t * (100000 - 90000 * tf);
93
94 _color[3] = OOClamp_0_1_f(0.5f * ((0.025f / tf) + 1.0f - stf));
95
98 {
101 }
102
103
107 {
108
109
111 }
112
113
115 {
116 [UNIVERSE removeEntity:self];
117 }
118}
OOMatrix OOMatrixForBillboard(HPVector bbPos, HPVector eyePos)
#define kQuiriumCascadeDuration
NSMutableArray * collidingEntities
void takeEnergyDamage:from:becauseOf:weaponIdentifier:(double amount,[from] Entity *ent,[becauseOf] Entity *other,[weaponIdentifier] NSString *weaponIdentifier)
◆ _color
◆ _timePassed
The documentation for this class was generated from the following files: