Oolite
Loading...
Searching...
No Matches
OOLaserShotEntity Class Reference

#include <OOLaserShotEntity.h>

Inheritance diagram for OOLaserShotEntity:
Collaboration diagram for OOLaserShotEntity:

Instance Methods

(void) - setColor:
(void) - setRange:
(OOTexture *) - texture1
(OOTexture *) - texture2
(instancetype) - initLaserFromShip:direction:offset: [implementation]
(void) - dealloc [implementation]
(NSString *) - descriptionComponents [implementation]
(void) - update: [implementation]
(void) - drawImmediate:translucent: [implementation]
(BOOL) - isEffect [implementation]
(BOOL) - canCollide [implementation]
Instance Methods inherited from Entity
(NSUInteger) - sessionID
(BOOL) - isShip
(BOOL) - isDock
(BOOL) - isStation
(BOOL) - isSubEntity
(BOOL) - isPlayer
(BOOL) - isPlanet
(BOOL) - isSun
(BOOL) - isSunlit
(BOOL) - isStellarObject
(BOOL) - isSky
(BOOL) - isWormhole
(BOOL) - isVisualEffect
(BOOL) - isWaypoint
(BOOL) - validForAddToUniverse
(void) - addToLinkedLists
(void) - removeFromLinkedLists
(void) - updateLinkedLists
(void) - wasAddedToUniverse
(void) - wasRemovedFromUniverse
(void) - warnAboutHostiles
(CollisionRegion *) - collisionRegion
(void) - setCollisionRegion:
(void) - setUniversalID:
(OOUniversalID) - universalID
(BOOL) - throwingSparks
(void) - setThrowSparks:
(void) - throwSparks
(void) - setOwner:
(id) - owner
(ShipEntity *) - parentEntity
(ShipEntity *) - rootShipEntity
(void) - setPosition:
(void) - setPositionX:y:z:
(HPVector) - position
(Vector) - cameraRelativePosition
(GLfloat) - cameraRangeFront
(GLfloat) - cameraRangeBack
(void) - updateCameraRelativePosition
(Vector) - vectorTo:
(HPVector) - absolutePositionForSubentity
(HPVector) - absolutePositionForSubentityOffset:
(double) - zeroDistance
(double) - camZeroDistance
(NSComparisonResult) - compareZeroDistance:
(BoundingBox) - boundingBox
(GLfloat) - mass
(Quaternion) - orientation
(void) - setOrientation:
(Quaternion) - normalOrientation
(void) - setNormalOrientation:
(void) - orientationChanged
(void) - setVelocity:
(Vector) - velocity
(double) - speed
(GLfloat) - distanceTravelled
(void) - setDistanceTravelled:
(void) - setStatus:
(OOEntityStatus) - status
(void) - setScanClass:
(OOScanClass) - scanClass
(void) - setEnergy:
(GLfloat) - energy
(void) - setMaxEnergy:
(GLfloat) - maxEnergy
(void) - applyRoll:andClimb:
(void) - applyRoll:climb:andYaw:
(void) - moveForward:
(OOMatrix) - rotationMatrix
(OOMatrix) - drawRotationMatrix
(OOMatrix) - transformationMatrix
(OOMatrix) - drawTransformationMatrix
(GLfloat) - collisionRadius
(GLfloat) - frustumRadius
(void) - setCollisionRadius:
(NSMutableArray *) - collisionArray
(void) - applyVelocity:
(BOOL) - checkCloseCollisionWith:
(void) - takeEnergyDamage:from:becauseOf:weaponIdentifier:
(void) - dumpState
(void) - dumpSelfState
(NSUInteger) - lastDrawCounter
(void) - setLastDrawCounter:
(double) - findCollisionRadius
(BOOL) - isVisible
(BOOL) - isInSpace
(BOOL) - isImmuneToBreakPatternHide
(GLfloat) - universalTime
(GLfloat) - spawnTime
(GLfloat) - timeElapsedSinceSpawn
(void) - setAtmosphereFogging:
(OOColor *) - fogUniform
(id) - init [implementation]
(BOOL) - checkLinkedLists [implementation]
(id< OOWeakReferenceSupport >) - superShaderBindingTarget [implementation]
(Vector) - relativePosition [implementation]
(void) - subEntityReallyDied: [implementation]
(BOOL) - isBreakPattern
(BOOL) - isECMBlast
(BOOL) - isExhaust
(BOOL) - isFlasher
(BOOL) - isVisibleToScripts
(BOOL) - isVisibleToScripts
(NSString *) - oo_jsClassName
(NSString *) - oo_jsClassName
(void) - getJSClass:andPrototype:
(void) - deleteJSSelf
(void) - deleteJSSelf
(JSClassID) - oo_jsClassID
(jsval) - oo_jsValueInContext: [implementation]
(BOOL) - isCascadeWeapon
(BOOL) - isPlayerLikeShip
(GLfloat) - clock [implementation]
(unsigned) - pseudoFixedD100 [implementation]
(unsigned) - pseudoFixedD256 [implementation]
(unsigned) - systemGovernment [implementation]
(unsigned) - systemEconomy [implementation]
(unsigned) - systemTechLevel [implementation]
(unsigned) - systemPopulation [implementation]
(unsigned) - systemProductivity [implementation]
(BOOL) - isShipWithSubEntityShip:
(void) - drawSubEntityImmediate:translucent: [implementation]
Instance Methods inherited from OOWeakRefObject
(id) - weakSelf
(id) - weakRetain [implementation]
(void) - weakRefDied: [implementation]
Instance Methods inherited from <OOWeakReferenceSupport>
(id) - OO_RETURNS_RETAINED

Class Methods

(instancetype) + laserFromShip:direction:offset:
(void) + setUpTexture
(OOTexture *) + innerTexture
(OOTexture *) + outerTexture
(void) + resetGraphicsState [implementation]

Private Attributes

GLfloat _color [4]
OOTimeDelta _lifetime
GLfloat _range
Vector _offset
Quaternion _relOrientation

Additional Inherited Members

Public Attributes inherited from Entity
OOUniversalID universalID
unsigned isShip: 1
unsigned isStation: 1
unsigned isPlayer: 1
unsigned isWormhole: 1
unsigned isSubEntity: 1
unsigned hasMoved: 1
unsigned hasRotated: 1
unsigned hasCollided: 1
unsigned isSunlit: 1
unsigned collisionTestFilter: 2
unsigned throw_sparks: 1
unsigned isImmuneToBreakPatternHide: 1
unsigned isExplicitlyNotMainStation: 1
unsigned isVisualEffect: 1
OOScanClass scanClass
GLfloat zero_distance
GLfloat cam_zero_distance
GLfloat no_draw_distance
GLfloat collision_radius
HPVector position
Vector cameraRelativePosition
Quaternion orientation
OOColor * atmosphereFogging
int zero_index
Entity * x_previous
Entity * x_next
Entity * y_previous
Entity * y_next
Entity * z_previous
Entity * z_next
Entity * collision_chain
OOUniversalID shadingEntityID
Entity * collider
CollisionRegion * collisionRegion
Protected Attributes inherited from Entity
HPVector lastPosition
Quaternion lastOrientation
GLfloat distanceTravelled
OOMatrix rotMatrix
Vector velocity
GLfloat energy
GLfloat maxEnergy
BoundingBox boundingBox
GLfloat mass
NSMutableArray * collidingEntities
OOTimeAbsolute spawnTime
struct JSObject * _jsSelf
NSUInteger lastDrawCounter
Protected Attributes inherited from OOWeakRefObject
OOWeakReference * weakSelf

Detailed Description

Definition at line 35 of file OOLaserShotEntity.h.

Method Documentation

◆ canCollide

- (BOOL) canCollide
implementation

Reimplemented from Entity.

Definition at line 260 of file OOLaserShotEntity.m.

261{
262 return NO;
263}

References canCollide.

Referenced by canCollide.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dealloc

- (void) dealloc
implementation

Reimplemented from Entity.

Definition at line 122 of file OOLaserShotEntity.m.

123{
124 [self setColor:nil];
125
126 [super dealloc];
127}

References Entity::dealloc, dealloc, and setColor:.

Referenced by dealloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ descriptionComponents

- (NSString *) descriptionComponents
implementation

Reimplemented from Entity.

Definition at line 129 of file OOLaserShotEntity.m.

130{
131 return [NSString stringWithFormat:@"ttl: %.3fs - %@ orientation %@", _lifetime, [super descriptionComponents], QuaternionDescription([self orientation])];
132}

References Entity::descriptionComponents, descriptionComponents, and Entity::orientation.

Referenced by descriptionComponents.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawImmediate:translucent:

- (void) drawImmediate: (bool) immediate
translucent: (bool) translucent 
implementation

Reimplemented from Entity.

Definition at line 197 of file OOLaserShotEntity.m.

197 :(bool)immediate translucent:(bool)translucent
198{
199 if (!translucent || [UNIVERSE breakPatternHide])
200 return;
201
204
205 /* FIXME: spread damage across the lifetime of the shot,
206 hurting whatever is hit in a given frame.
207 -- Ahruman 2011-01-31
208 */
209 OOGL(glEnableClientState(GL_TEXTURE_COORD_ARRAY));
210 OOGL(glEnable(GL_TEXTURE_2D));
212
214 [[self texture1] apply];
215 GLfloat s = sinf([UNIVERSE getTime]);
216 GLfloat phase = s * (_range / 200.0f);
217 GLfloat phase2 = (1.0f + s) * (_range / 200.0f);
218 GLfloat phase3 = -s * (_range / 500.0f);
219 GLfloat phase4 = -(1.0f + s) * (_range / 500.0f);
220
221 GLfloat laserTexCoords[] = {
222 0.0f, phase, 0.0f, phase2, 1.0f, phase2, 1.0f, phase,
223
224 0.0f, phase, 0.0f, phase2, 1.0f, phase2, 1.0f, phase
225 };
226 GLfloat laserTexCoords2[] = {
227 0.0f, phase3, 0.0f, phase4, 1.0f, phase4, 1.0f, phase3,
228
229 0.0f, phase3, 0.0f, phase4, 1.0f, phase4, 1.0f, phase3
230 };
231
232 OOGL(glColor4fv(_color));
233 glVertexPointer(3, GL_FLOAT, 0, kLaserVertices);
234 glTexCoordPointer(2, GL_FLOAT, 0, laserTexCoords2);
235 glDrawArrays(GL_QUADS, 0, 8);
236
239 glDrawArrays(GL_QUADS, 0, 8);
240
241 [[self texture2] apply];
243 OOGL(glColor4f(_color[0], _color[1], _color[2], 0.9));
244 glTexCoordPointer(2, GL_FLOAT, 0, laserTexCoords);
245 glDrawArrays(GL_QUADS, 0, 8);
246
248 OOGL(glDisableClientState(GL_TEXTURE_COORD_ARRAY));
249 OOGL(glDisable(GL_TEXTURE_2D));
250
252 OOCheckOpenGLErrors(@"OOLaserShotEntity after drawing %@", self);
253}
#define kLaserFlareWidth
static const GLfloat kLaserVertices[]
#define kLaserHalfWidth
#define kLaserCoreWidth
#define kLaserBrightness
#define OO_ENTER_OPENGL()
void OOGLScaleModelView(Vector scale)
void OOGLPushModelView(void)
OOMatrix OOGLPopModelView(void)
@ OPENGL_STATE_ADDITIVE_BLENDING
Definition OOOpenGL.h:123
#define OOVerifyOpenGLState()
Definition OOOpenGL.h:133
BOOL OOCheckOpenGLErrors(NSString *format,...)
Definition OOOpenGL.m:38
#define OOSetOpenGLState(STATE)
Definition OOOpenGL.h:132
#define OOGL(statement)
Definition OOOpenGL.h:262
OOINLINE Vector make_vector(OOScalar vx, OOScalar vy, OOScalar vz) INLINE_CONST_FUNC
Definition OOVector.h:149
#define UNIVERSE
Definition Universe.h:827

References _color, _range, OOTexture::apply, kLaserBrightness, kLaserCoreWidth, kLaserFlareWidth, kLaserHalfWidth, kLaserVertices, make_vector(), OO_ENTER_OPENGL, OOCheckOpenGLErrors(), OOGL, OOGLPopModelView(), OOGLPushModelView(), OOGLScaleModelView(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, texture1, texture2, and UNIVERSE.

Here is the call graph for this function:

◆ initLaserFromShip:direction:offset:

- (instancetype) initLaserFromShip: (ShipEntity*) srcEntity
direction: (OOWeaponFacing) direction
offset: (Vector) offset 
implementation

Definition at line 58 of file OOLaserShotEntity.m.

58 :(ShipEntity*)srcEntity direction:(OOWeaponFacing)direction offset:(Vector)offset
59{
60 if (!(self = [super init]))
61 return nil;
62
63 ShipEntity* ship = [srcEntity rootShipEntity];
64 Vector middle = OOBoundingBoxCenter([srcEntity boundingBox]);
65
66 NSCParameterAssert([srcEntity isShip] && [ship isShip]);
67
68 [self setStatus:STATUS_EFFECT];
69
70 if (ship == srcEntity) {
71 // main laser offset
72 [self setPosition:HPvector_add([ship position], vectorToHPVector(OOVectorMultiplyMatrix(offset, [ship drawRotationMatrix])))];
73 } else {
74 // subentity laser
75 [self setPosition:[srcEntity absolutePositionForSubentityOffset:vectorToHPVector(middle)]];
76 }
77
80 Quaternion q0 = [ship normalOrientation];
82
83 switch (direction) {
86 break;
87
90 break;
91
93 quaternion_rotate_about_axis(&q, q_up, M_PI / 2.0);
94 break;
95
97 quaternion_rotate_about_axis(&q, q_up, -M_PI / 2.0);
98 break;
99 }
100
101 [self setOrientation:quaternion_multiply(q, q0)];
102 [self setOwner:ship];
103 [self setRange:[srcEntity weaponRange]];
105
106 _color[0] = kLaserRed / 3.0;
107 _color[1] = kLaserGreen / 3.0;
108 _color[2] = kLaserBlue / 3.0;
109 _color[3] = kLaserAlpha;
110
111 _offset = (ship == srcEntity) ? offset : middle;
112 _relOrientation = q;
113
114 return self;
115}
OOINLINE Vector OOBoundingBoxCenter(BoundingBox bb) INLINE_CONST_FUNC
#define kLaserRed
#define kLaserGreen
#define kLaserBlue
#define kLaserDuration
#define kLaserAlpha
#define M_PI
Definition OOMaths.h:54
return nil
Vector vector_forward_from_quaternion(Quaternion quat) CONST_FUNC
struct Quaternion Quaternion
void quaternion_rotate_about_axis(Quaternion *quat, Vector axis, OOScalar angle) NONNULL_FUNC
const Quaternion kIdentityQuaternion
Vector vector_up_from_quaternion(Quaternion quat) CONST_FUNC
OOWeaponFacing
Definition OOTypes.h:195
@ WEAPON_FACING_FORWARD
Definition OOTypes.h:196
@ WEAPON_FACING_NONE
Definition OOTypes.h:201
@ WEAPON_FACING_AFT
Definition OOTypes.h:197
@ WEAPON_FACING_PORT
Definition OOTypes.h:198
@ WEAPON_FACING_STARBOARD
Definition OOTypes.h:199
struct Vector Vector
OOINLINE Vector vector_multiply_scalar(Vector v, OOScalar s) INLINE_CONST_FUNC
Definition OOVector.h:180
unsigned isShip
Definition Entity.m:125
ShipEntity * rootShipEntity()
Definition Entity.m:566
BoundingBox boundingBox
Definition Entity.m:666
HPVector position
Definition Entity.m:576
HPVector absolutePositionForSubentityOffset:(HPVector offset)
Definition Entity.m:632
Quaternion normalOrientation()
Definition Entity.m:687
Vector velocity
Definition Entity.m:708
id init()
Definition Entity.m:64
OOMatrix drawRotationMatrix()
Definition Entity.m:808
GLfloat weaponRange
voidpf uLong offset
Definition ioapi.h:132

References _color, _lifetime, _offset, _relOrientation, Entity::absolutePositionForSubentityOffset:, Entity::boundingBox, Entity::drawRotationMatrix, Entity::init, Entity::isShip, kIdentityQuaternion, kLaserAlpha, kLaserBlue, kLaserDuration, kLaserGreen, kLaserRed, M_PI, nil, Entity::normalOrientation, OOBoundingBoxCenter(), Entity::position, quaternion_rotate_about_axis(), Entity::rootShipEntity, Entity::setOrientation:, Entity::setOwner:, Entity::setPosition:, setRange:, Entity::setStatus:, vector_forward_from_quaternion(), vector_multiply_scalar(), vector_up_from_quaternion(), Entity::velocity, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, WEAPON_FACING_STARBOARD, and ShipEntity::weaponRange.

Here is the call graph for this function:

◆ innerTexture

+ (OOTexture *) innerTexture

Definition at line 293 of file OOLaserShotEntity.m.

294{
295 if (sShotTexture2 == nil)
296 [self setUpTexture];
297 return sShotTexture2;
298}
static OOTexture * sShotTexture2

References innerTexture, nil, setUpTexture, and sShotTexture2.

Referenced by innerTexture, and texture2.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEffect

- (BOOL) isEffect
implementation

Reimplemented from Entity.

Definition at line 255 of file OOLaserShotEntity.m.

256{
257 return YES;
258}

References isEffect.

Referenced by isEffect.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ laserFromShip:direction:offset:

+ (instancetype) laserFromShip: (ShipEntity*) ship
direction: (OOWeaponFacing) direction
offset: (Vector) offset 

Definition at line 117 of file OOLaserShotEntity.m.

117 :(ShipEntity*)ship direction:(OOWeaponFacing)direction offset:(Vector)offset
118{
119 return [[[self alloc] initLaserFromShip:ship direction:direction offset:offset] autorelease];
120}

Referenced by ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, and ShipEntity::fireSubentityLaserShot:.

Here is the caller graph for this function:

◆ outerTexture

+ (OOTexture *) outerTexture

Definition at line 300 of file OOLaserShotEntity.m.

301{
302 if (sShotTexture == nil)
303 [self setUpTexture];
304 return sShotTexture;
305}
static OOTexture * sShotTexture

References nil, outerTexture, setUpTexture, and sShotTexture.

Referenced by outerTexture, and texture1.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetGraphicsState

+ (void) resetGraphicsState
implementation

Definition at line 307 of file OOLaserShotEntity.m.

308{
309 [sShotTexture release];
311 [sShotTexture2 release];
313}

References nil, resetGraphicsState, sShotTexture, and sShotTexture2.

Referenced by resetGraphicsState.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setColor:

- (void) setColor: (OOColor*) color

Definition at line 134 of file OOLaserShotEntity.m.

134 :(OOColor*)color
135{
136 _color[0] = kLaserBrightness * [color redComponent] / 3.0;
137 _color[1] = kLaserBrightness * [color greenComponent] / 3.0;
138 _color[2] = kLaserBrightness * [color blueComponent] / 3.0;
139 // Ignore alpha; _color[3] is constant.
140}
float blueComponent()
Definition OOColor.m:339
float redComponent()
Definition OOColor.m:329
float greenComponent()
Definition OOColor.m:334

References _color, OOColor::blueComponent, OOColor::greenComponent, kLaserBrightness, and OOColor::redComponent.

Referenced by dealloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRange:

- (void) setRange: (GLfloat) range

Definition at line 142 of file OOLaserShotEntity.m.

142 :(GLfloat)range
143{
144 _range = range;
145 [self setCollisionRadius:range];
146}

References _range, and Entity::setCollisionRadius:.

Referenced by initLaserFromShip:direction:offset:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpTexture

+ (void) setUpTexture

Definition at line 275 of file OOLaserShotEntity.m.

276{
277 if (sShotTexture == nil) {
278 sShotTexture = [[OOTexture textureWithName:@"oolite-laser-blur.png"
279 inFolder:@"Textures"
280 options:kOOTextureMinFilterMipMap | kOOTextureMagFilterLinear | kOOTextureAlphaMask | kOOTextureRepeatT
281 anisotropy:kOOTextureDefaultAnisotropy / 2.0
282 lodBias:0.0] retain];
283 [[OOGraphicsResetManager sharedManager] registerClient:(id<OOGraphicsResetClient>)[OOLaserShotEntity class]];
284
285 sShotTexture2 = [[OOTexture textureWithName:@"oolite-laser-blur2.png"
286 inFolder:@"Textures"
287 options:kOOTextureMinFilterMipMap | kOOTextureMagFilterLinear | kOOTextureAlphaMask | kOOTextureRepeatT
288 anisotropy:kOOTextureDefaultAnisotropy / 2.0
289 lodBias:0.0] retain];
290 }
291}
void registerClient:(id< OOGraphicsResetClient > client)
OOGraphicsResetManager * sharedManager()
id textureWithName:inFolder:options:anisotropy:lodBias:(NSString *name,[inFolder] NSString *directory,[options] OOTextureFlags options,[anisotropy] GLfloat anisotropy,[lodBias] GLfloat lodBias)
Definition OOTexture.m:132

References nil, OOGraphicsResetManager::registerClient:, setUpTexture, OOGraphicsResetManager::sharedManager, sShotTexture, sShotTexture2, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.

Referenced by innerTexture, outerTexture, and setUpTexture.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ texture1

- (OOTexture *) texture1

Definition at line 265 of file OOLaserShotEntity.m.

266{
268}

References outerTexture, and texture1.

Referenced by drawImmediate:translucent:, and texture1.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ texture2

- (OOTexture *) texture2

Definition at line 270 of file OOLaserShotEntity.m.

271{
273}

References innerTexture, and texture2.

Referenced by drawImmediate:translucent:, and texture2.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update:

- (void) update: (OOTimeDelta) delta_t
implementation

Reimplemented from Entity.

Definition at line 148 of file OOLaserShotEntity.m.

148 :(OOTimeDelta)delta_t
149{
150 [super update:delta_t];
151 _lifetime -= delta_t;
152 ShipEntity* ship = [self owner];
153
154 if ([ship isPlayer]) {
155 /*
156 Reposition this shot accurately. This overrides integration over
157 velocity in -[Entity update:], which is considered sufficient for
158 NPC ships.
159 */
160 [self setPosition:HPvector_add([ship position], vectorToHPVector(OOVectorMultiplyMatrix(_offset, [ship drawRotationMatrix])))];
161 [self setOrientation:quaternion_multiply(_relOrientation, [ship normalOrientation])];
162 }
163
164 if (_lifetime < 0) {
165 [UNIVERSE removeEntity:self];
166 }
167}
double OOTimeDelta
Definition OOTypes.h:193
unsigned isPlayer
Definition Entity.m:145

References _lifetime, Entity::drawRotationMatrix, Entity::isPlayer, Entity::normalOrientation, Entity::owner, Entity::position, Entity::setOrientation:, Entity::setPosition:, and Entity::update:.

Referenced by PlayerEntity::doBookkeeping:.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _color

- (GLfloat _color[4])
private

◆ _lifetime

- (OOTimeDelta) _lifetime
private

Definition at line 38 of file OOLaserShotEntity.h.

Referenced by initLaserFromShip:direction:offset:, and update:.

◆ _offset

- (Vector) _offset
private

Definition at line 40 of file OOLaserShotEntity.h.

Referenced by initLaserFromShip:direction:offset:.

◆ _range

- (GLfloat) _range
private

Definition at line 39 of file OOLaserShotEntity.h.

Referenced by drawImmediate:translucent:, and setRange:.

◆ _relOrientation

- (Quaternion) _relOrientation
private

Definition at line 41 of file OOLaserShotEntity.h.

Referenced by initLaserFromShip:direction:offset:.


The documentation for this class was generated from the following files: