Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOVisualEffectEntity Class Reference

#include <OOVisualEffectEntity.h>

+ Inheritance diagram for OOVisualEffectEntity:
+ Collaboration diagram for OOVisualEffectEntity:

Instance Methods

(id) - initWithKey:definition:
 
(BOOL) - setUpVisualEffectFromDictionary:
 
(OOMesh *) - mesh
 
(void) - setMesh:
 
(NSString *) - effectKey
 
(GLfloat) - frustumRadius
 
(void) - clearSubEntities
 
(BOOL) - setUpSubEntities
 
(void) - removeSubEntity:
 
(void) - setNoDrawDistance
 
(NSArray *) - subEntities
 
(NSUInteger) - subEntityCount
 
(NSEnumerator *) - visualEffectSubEntityEnumerator
 
(BOOL) - hasSubEntity:
 
(NSEnumerator *) - subEntityEnumerator
 
(NSEnumerator *) - effectSubEntityEnumerator
 
(NSEnumerator *) - flasherEnumerator
 
(void) - orientationChanged
 
(Vector) - forwardVector
 
(Vector) - rightVector
 
(Vector) - upVector
 
(OOColor *) - scannerDisplayColor1
 
(OOColor *) - scannerDisplayColor2
 
(void) - setScannerDisplayColor1:
 
(void) - setScannerDisplayColor2:
 
(GLfloat *) - scannerDisplayColorForShip:flash:scannerDisplayColor1:
 
(void) - setScript:
 
(OOJSScript *) - script
 
(NSDictionary *) - scriptInfo
 
(void) - doScriptEvent:
 
(void) - remove
 
(GLfloat) - scaleMax
 
(GLfloat) - scaleX
 
(void) - setScaleX:
 
(GLfloat) - scaleY
 
(void) - setScaleY:
 
(GLfloat) - scaleZ
 
(void) - setScaleZ:
 
(GLfloat) - hullHeatLevel
 
(void) - setHullHeatLevel:
 
(GLfloat) - shaderFloat1
 
(void) - setShaderFloat1:
 
(GLfloat) - shaderFloat2
 
(void) - setShaderFloat2:
 
(int- shaderInt1
 
(void) - setShaderInt1:
 
(int- shaderInt2
 
(void) - setShaderInt2:
 
(Vector) - shaderVector1
 
(void) - setShaderVector1:
 
(Vector) - shaderVector2
 
(void) - setShaderVector2:
 
(BOOL) - isBreakPattern
 
(void) - setIsBreakPattern:
 
(NSDictionary *) - effectInfoDictionary
 
(id) - init [implementation]
 
(void) - dealloc [implementation]
 
(BOOL) - isEffect [implementation]
 
(BOOL) - isVisualEffect [implementation]
 
(BOOL) - canCollide [implementation]
 
(BOOL) - setUpOneSubentity: [implementation]
 
(BOOL) - setUpOneFlasher: [implementation]
 
(BOOL) - setUpOneStandardSubentity: [implementation]
 
(void) - addSubEntity: [implementation]
 
(void) - drawSubEntityImmediate:translucent: [implementation]
 
(void) - rescaleBy: [implementation]
 
(void) - rescaleBy:writeToCache: [implementation]
 
(GLfloat) - collisionRadius [implementation]
 
(void) - drawImmediate:translucent: [implementation]
 
(void) - update: [implementation]
 
(NSComparisonResult) - compareBeaconCodeWith: [implementation]
 
(NSString *) - beaconCode [implementation]
 
(void) - setBeaconCode: [implementation]
 
(NSString *) - beaconLabel [implementation]
 
(void) - setBeaconLabel: [implementation]
 
(BOOL) - isBeacon [implementation]
 
(id< OOHUDBeaconIcon >) - beaconDrawable [implementation]
 
(Entity< OOBeaconEntity > *) - prevBeacon [implementation]
 
(Entity< OOBeaconEntity > *) - nextBeacon [implementation]
 
(void) - setPrevBeacon: [implementation]
 
(void) - setNextBeacon: [implementation]
 
(BOOL) - isJammingScanning [implementation]
 
(void) - getJSClass:andPrototype:
 
(NSString *) - oo_jsClassName
 
(BOOL) - isVisibleToScripts
 
(NSArray *) - subEntitiesForScript
 
(BOOL) - isShipWithSubEntityShip: [implementation]
 
- Instance Methods inherited from OOEntityWithDrawable
(OODrawable *) - drawable
 
(void) - setDrawable:
 
(double) - findCollisionRadius [implementation]
 
(NSSet *) - allTextures [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) - 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) - 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
 
(void) - setCollisionRadius:
 
(NSMutableArray *) - collisionArray
 
(void) - applyVelocity:
 
(BOOL) - checkCloseCollisionWith:
 
(void) - takeEnergyDamage:from:becauseOf:weaponIdentifier:
 
(void) - dumpState
 
(void) - dumpSelfState
 
(BOOL) - isVisible
 
(BOOL) - isInSpace
 
(BOOL) - isImmuneToBreakPatternHide
 
(GLfloat) - universalTime
 
(GLfloat) - spawnTime
 
(GLfloat) - timeElapsedSinceSpawn
 
(void) - setAtmosphereFogging:
 
(OOColor *) - fogUniform
 
(NSString *) - descriptionForObjDumpBasic
 
(NSString *) - descriptionForObjDump
 
(NSString *) - descriptionComponents [implementation]
 
(BOOL) - checkLinkedLists [implementation]
 
(id< OOWeakReferenceSupport >) - superShaderBindingTarget [implementation]
 
(Vector) - relativePosition [implementation]
 
(void) - subEntityReallyDied: [implementation]
 
(void) - inspect [implementation]
 
(BOOL) - isECMBlast
 
(NSArray *) - debugInspectorModules [implementation]
 
(NSString *) - inspScanClassLine
 
(NSString *) - inspStatusLine
 
(NSString *) - inspRetainCountLine
 
(NSString *) - inspPositionLine
 
(NSString *) - inspVelocityLine
 
(NSString *) - inspOrientationLine
 
(NSString *) - inspEnergyLine
 
(NSString *) - inspOwnerLine
 
(NSString *) - inspTargetLine
 
(NSString *) - inspDescription [implementation]
 
(NSString *) - inspBasicIdentityLine [implementation]
 
(BOOL) - isExhaust
 
(BOOL) - isFlasher
 
(void) - deleteJSSelf
 
(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]
 
- Instance Methods inherited from OOWeakRefObject
(id) - weakSelf
 
(id) - weakRetain [implementation]
 
(void) - weakRefDied: [implementation]
 
- Instance Methods inherited from <OOWeakReferenceSupport>
(id) - OO_RETURNS_RETAINED
 
- Instance Methods inherited from <OOSubEntity>
- Instance Methods inherited from <OOBeaconEntity>

Private Attributes

NSMutableArray * subEntities
 
NSDictionary * effectinfoDictionary
 
GLfloat _profileRadius
 
OOColorscanner_display_color1
 
OOColorscanner_display_color2
 
GLfloat _hullHeatLevel
 
GLfloat _shaderFloat1
 
GLfloat _shaderFloat2
 
int _shaderInt1
 
int _shaderInt2
 
Vector _shaderVector1
 
Vector _shaderVector2
 
Vector _v_forward
 
Vector _v_up
 
Vector _v_right
 
OOJSScriptscript
 
NSDictionary * scriptInfo
 
NSString * _effectKey
 
BOOL _haveExecutedSpawnAction
 
NSString * _beaconCode
 
NSString * _beaconLabel
 
OOWeakReference_prevBeacon
 
OOWeakReference_nextBeacon
 
id< OOHUDBeaconIcon_beaconDrawable
 
GLfloat scaleX
 
GLfloat scaleY
 
GLfloat scaleZ
 

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
 
OOColoratmosphereFogging
 
int zero_index
 
Entityx_previous
 
Entityx_next
 
Entityy_previous
 
Entityy_next
 
Entityz_previous
 
Entityz_next
 
Entitycollision_chain
 
OOUniversalID shadingEntityID
 
Entitycollider
 
CollisionRegioncollisionRegion
 
- 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
 
- Protected Attributes inherited from OOWeakRefObject
OOWeakReferenceweakSelf
 

Detailed Description

Definition at line 36 of file OOVisualEffectEntity.h.

Method Documentation

◆ addSubEntity:

- (void) addSubEntity: (Entity<OOSubEntity> *) sub
implementation

Provided by category OOVisualEffectEntity(Private).

Definition at line 1 of file OOVisualEffectEntity.m.

332 :(Entity<OOSubEntity> *)sub
333{
334 if (sub == nil) return;
335
336 if (subEntities == nil) subEntities = [[NSMutableArray alloc] init];
337 sub->isSubEntity = YES;
338 // Order matters - need consistent state in setOwner:. -- Ahruman 2008-04-20
339 [subEntities addObject:sub];
340 [sub setOwner:self];
341
342 double distance = HPmagnitude([sub position]) + [sub findCollisionRadius];
343 if (distance > _profileRadius)
344 {
345 _profileRadius = distance;
346 }
347}
return nil
unsigned isSubEntity
Definition Entity.h:95
void setOwner:(Entity *ent)
Definition Entity.m:576
HPVector position
Definition Entity.h:112
NSMutableArray * subEntities

◆ beaconCode

- (NSString *) beaconCode
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

767{
768 return _beaconCode;
769}

Referenced by VisualEffectGetProperty().

+ Here is the caller graph for this function:

◆ beaconDrawable

- (id< OOHUDBeaconIcon >) beaconDrawable
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

817{
818 if (_beaconDrawable == nil)
819 {
820 NSString *beaconCode = [self beaconCode];
821 NSUInteger length = [beaconCode length];
822
823 if (length > 1)
824 {
825 NSArray *iconData = [[UNIVERSE descriptions] oo_arrayForKey:beaconCode];
826 if (iconData != nil) _beaconDrawable = [[OOPolygonSprite alloc] initWithDataArray:iconData outlineWidth:0.5 name:beaconCode];
827 }
828
829 if (_beaconDrawable == nil)
830 {
831 if (length > 0) _beaconDrawable = [[beaconCode substringToIndex:1] retain];
832 else _beaconDrawable = @"";
833 }
834 }
835
836 return _beaconDrawable;
837}
id< OOHUDBeaconIcon > _beaconDrawable

◆ beaconLabel

- (NSString *) beaconLabel
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

793{
794 return _beaconLabel;
795}

Referenced by VisualEffectGetProperty().

+ Here is the caller graph for this function:

◆ canCollide

- (BOOL) canCollide
implementation

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

191{
192 return NO;
193}

◆ clearSubEntities

- (void) clearSubEntities

Definition at line 1 of file OOVisualEffectEntity.m.

224{
225 [subEntities makeObjectsPerformSelector:@selector(setOwner:) withObject:nil]; // Ensure backlinks are broken
226 [subEntities release];
228
229 // reset size & mass!
230 if ([self mesh])
231 {
232 collision_radius = [self findCollisionRadius];
233 }
234 else
235 {
236 collision_radius = 0.0;
237 }
239}
GLfloat collision_radius
Definition Entity.h:111

Referenced by OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.

+ Here is the caller graph for this function:

◆ collisionRadius

- (GLfloat) collisionRadius
implementation

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

553{
554 return [self scaleMax] * collision_radius;
555}

◆ compareBeaconCodeWith:

- (NSComparisonResult) compareBeaconCodeWith: (Entity<OOBeaconEntity> *) other
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

760 :(Entity<OOBeaconEntity> *) other
761{
762 return [[self beaconCode] compare:[other beaconCode] options: NSCaseInsensitiveSearch];
763}

◆ dealloc

- (void) dealloc
implementation

Reimplemented from OOEntityWithDrawable.

Definition at line 1 of file OOVisualEffectEntity.m.

162{
163 [self clearSubEntities];
173
174 [super dealloc];
175}
#define DESTROY(x)
Definition OOCocoa.h:77
NSDictionary * effectinfoDictionary

◆ doScriptEvent:

- (void) doScriptEvent: (jsid) message

Definition at line 619 of file OOVisualEffectEntity.m.

743 :(jsid)message
744{
745 JSContext *context = OOJSAcquireContext();
746 [script callMethod:message inContext:context withArguments:NULL count:0 result:NULL];
747 OOJSRelinquishContext(context);
748}
OOINLINE JSContext * OOJSAcquireContext(void)
OOINLINE void OOJSRelinquishContext(JSContext *context)

◆ drawImmediate:translucent:

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

Reimplemented from OOEntityWithDrawable.

Definition at line 619 of file OOVisualEffectEntity.m.

650 :(bool)immediate translucent:(bool)translucent
651{
653 {
654 return; // too far away to draw
655 }
658
659 if ([self mesh] != nil)
660 {
661 [super drawImmediate:immediate translucent:translucent];
662 }
664
665 // Draw subentities.
666 if (!immediate) // TODO: is this relevant any longer?
667 {
668 Entity<OOSubEntity> *subEntity = nil;
669 foreach (subEntity, [self subEntities])
670 {
671 [subEntity drawSubEntityImmediate:immediate translucent:translucent];
672 }
673 }
674}
void OOGLScaleModelView(Vector scale)
void OOGLPushModelView(void)
OOMatrix OOGLPopModelView(void)
void drawSubEntityImmediate:translucent:(bool immediate, [translucent] bool translucent)
GLfloat cam_zero_distance
Definition Entity.h:109
GLfloat no_draw_distance
Definition Entity.h:110

◆ drawSubEntityImmediate:translucent:

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

Reimplemented from Entity.

Provided by category OOVisualEffectEntity(Private).

Definition at line 1 of file OOVisualEffectEntity.m.

392 :(bool)immediate translucent:(bool)translucent
393{
394 if (cam_zero_distance > no_draw_distance) // this test provides an opportunity to do simple LoD culling
395 {
396 return; // TOO FAR AWAY
397 }
399 // HPVect: camera position
400 OOGLTranslateModelView(HPVectorToVector(position));
402 [self drawImmediate:immediate translucent:translucent];
403
405}
void OOGLTranslateModelView(Vector vector)
void OOGLMultModelView(OOMatrix matrix)
OOMatrix rotMatrix
Definition Entity.h:138

◆ effectInfoDictionary

- (NSDictionary *) effectInfoDictionary

Definition at line 619 of file OOVisualEffectEntity.m.

707{
709}

Referenced by VisualEffectSetMaterialsInternal().

+ Here is the caller graph for this function:

◆ effectKey

- (NSString *) effectKey

Definition at line 1 of file OOVisualEffectEntity.m.

212{
213 return _effectKey;
214}

Referenced by VisualEffectGetProperty().

+ Here is the caller graph for this function:

◆ effectSubEntityEnumerator

- (NSEnumerator *) effectSubEntityEnumerator

Definition at line 1 of file OOVisualEffectEntity.m.

381{
382 return [[self subEntities] objectEnumeratorFilteredWithSelector:@selector(isVisualEffect)];
383}

◆ flasherEnumerator

- (NSEnumerator *) flasherEnumerator

Definition at line 1 of file OOVisualEffectEntity.m.

387{
388 return [[self subEntities] objectEnumeratorFilteredWithSelector:@selector(isFlasher)];
389}

◆ forwardVector

- (Vector) forwardVector

Definition at line 1 of file OOVisualEffectEntity.m.

570{
571 return _v_forward;
572}

◆ frustumRadius

- (GLfloat) frustumRadius

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

218{
219 return [self scaleMax] * _profileRadius;
220}

◆ getJSClass:andPrototype:

- (void) getJSClass: (JSClass **) outClass
andPrototype: (JSObject **) outPrototype 

Reimplemented from Entity.

Provided by category OOVisualEffectEntity(OOJavaScriptExtensions).

Definition at line 718 of file OOJSVisualEffect.m.

175 :(JSClass **)outClass andPrototype:(JSObject **)outPrototype
176{
177 *outClass = &sVisualEffectClass;
178 *outPrototype = sVisualEffectPrototype;
179}
static JSObject * sVisualEffectPrototype
static JSClass sVisualEffectClass

◆ hasSubEntity:

- (BOOL) hasSubEntity: (Entity<OOSubEntity> *) sub

Definition at line 1 of file OOVisualEffectEntity.m.

368 :(Entity<OOSubEntity> *)sub
369{
370 return [subEntities containsObject:sub];
371}

◆ hullHeatLevel

- (GLfloat) hullHeatLevel

Definition at line 619 of file OOVisualEffectEntity.m.

882{
883 return _hullHeatLevel;
884}

◆ init

- (id) init
implementation

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

71{
72 return [self initWithKey:@"" definition:nil];
73}

◆ initWithKey:definition:

- (id) initWithKey: (NSString *) key
definition: (NSDictionary *) dict 

Definition at line 1 of file OOVisualEffectEntity.m.

75 :(NSString *)key definition:(NSDictionary *)dict
76{
78
79 NSParameterAssert(dict != nil);
80
81 self = [super init];
82 if (self == nil) return nil;
83
84 _effectKey = [key retain];
85
86 if (![self setUpVisualEffectFromDictionary:dict])
87 {
88 [self release];
89 self = nil;
90 }
91
93
94 return self;
95
97}
#define OOJS_PROFILE_EXIT
#define OOJS_PROFILE_ENTER

◆ isBeacon

- (BOOL) isBeacon
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

811{
812 return [self beaconCode] != nil;
813}

◆ isBreakPattern

- (BOOL) isBreakPattern

Reimplemented from Entity.

Definition at line 619 of file OOVisualEffectEntity.m.

695{
697}
unsigned isImmuneToBreakPatternHide
Definition Entity.h:102

◆ isEffect

- (BOOL) isEffect
implementation

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

179{
180 return YES;
181}

◆ isJammingScanning

- (BOOL) isJammingScanning
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

873{
874 return NO;
875}

◆ isShipWithSubEntityShip:

- (BOOL) isShipWithSubEntityShip: (Entity *) other
implementation

Reimplemented from Entity.

Provided by category OOVisualEffectEntity(SubEntityRelationship).

Definition at line 619 of file OOVisualEffectEntity.m.

970 :(Entity *)other
971{
972 assert ([self isVisualEffect]);
973
974 if (![other isVisualEffect]) return NO;
975 if (![other isSubEntity]) return NO;
976 if ([other owner] != self) return NO;
977
978#ifndef NDEBUG
979 // Sanity check; this should always be true.
980 if (![self hasSubEntity:(OOVisualEffectEntity *)other])
981 {
982 OOLogERR(@"visualeffect.subentity.sanityCheck.failed", @"%@ thinks it's a subentity of %@, but the supposed parent does not agree. %@", [other shortDescription], [self shortDescription], @"This is an internal error, please report it.");
983 [other setOwner:nil];
984 return NO;
985 }
986#endif
987
988 return YES;
989}
#define OOLogERR(class, format,...)
Definition OOLogging.h:112

◆ isVisibleToScripts

- (BOOL) isVisibleToScripts

Reimplemented from Entity.

Provided by category OOVisualEffectEntity(OOJavaScriptExtensions).

Definition at line 718 of file OOJSVisualEffect.m.

188{
189 return YES;
190}

◆ isVisualEffect

- (BOOL) isVisualEffect
implementation

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

185{
186 return YES;
187}

◆ mesh

- (OOMesh *) mesh

Definition at line 1 of file OOVisualEffectEntity.m.

197{
198 return (OOMesh *)[self drawable];
199}

Referenced by VisualEffectGetMaterials(), VisualEffectGetShaders(), and VisualEffectSetMaterialsInternal().

+ Here is the caller graph for this function:

◆ nextBeacon

- (Entity< OOBeaconEntity > *) nextBeacon
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

847{
848 return [_nextBeacon weakRefUnderlyingObject];
849}

◆ oo_jsClassName

- (NSString *) oo_jsClassName

Reimplemented from Entity.

Provided by category OOVisualEffectEntity(OOJavaScriptExtensions).

Definition at line 718 of file OOJSVisualEffect.m.

183{
184 return @"VisualEffect";
185}

◆ orientationChanged

- (void) orientationChanged

Reimplemented from Entity.

Definition at line 1 of file OOVisualEffectEntity.m.

559{
560 [super orientationChanged];
561
565}
Vector vector_up_from_quaternion(Quaternion quat)
Vector vector_right_from_quaternion(Quaternion quat)
Vector vector_forward_from_quaternion(Quaternion quat)
Quaternion orientation
Definition Entity.h:114

◆ prevBeacon

- (Entity< OOBeaconEntity > *) prevBeacon
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

841{
842 return [_prevBeacon weakRefUnderlyingObject];
843}

◆ remove

- (void) remove

Definition at line 619 of file OOVisualEffectEntity.m.

752{
753 [self doScriptEvent:OOJSID("effectRemoved")];
754 [UNIVERSE removeEntity:(Entity*)self];
755}

Referenced by VisualEffectRemove().

+ Here is the caller graph for this function:

◆ removeSubEntity:

- (void) removeSubEntity: (Entity<OOSubEntity> *) sub

Definition at line 1 of file OOVisualEffectEntity.m.

259 :(Entity<OOSubEntity> *)sub
260{
261 [sub setOwner:nil];
262 [subEntities removeObject:sub];
263}

Referenced by VisualEffectRemove().

+ Here is the caller graph for this function:

◆ rescaleBy:

- (void) rescaleBy: (GLfloat) factor
implementation

Reimplemented from <OOSubEntity>.

Definition at line 1 of file OOVisualEffectEntity.m.

408 :(GLfloat)factor
409{
410 if ([self mesh] != nil) {
411 [self setMesh:[[self mesh] meshRescaledBy:factor]];
412 }
413
414 // rescale subentities
416 foreach (se, [self subEntities])
417 {
418 [se setPosition:HPvector_multiply_scalar([se position], factor)];
419 [se rescaleBy:factor];
420 }
421
422 collision_radius *= factor;
423 _profileRadius *= factor;
424}
void setPosition:(HPVector posn)
Definition Entity.m:647

◆ rescaleBy:writeToCache:

- (void) rescaleBy: (GLfloat) factor
writeToCache: (BOOL) writeToCache 
implementation

Reimplemented from <OOSubEntity>.

Definition at line 1 of file OOVisualEffectEntity.m.

427 :(GLfloat)factor writeToCache:(BOOL)writeToCache
428{
429 /* Do nothing; this is only needed because of OOEntityWithDrawable
430 implementation requirements */
431}

◆ rightVector

- (Vector) rightVector

Definition at line 1 of file OOVisualEffectEntity.m.

584{
585 return _v_right;
586}

◆ scaleMax

- (GLfloat) scaleMax

Definition at line 1 of file OOVisualEffectEntity.m.

435{
436 GLfloat scale = 1.0;
437 if (scaleX > scaleY)
438 {
439 if (scaleX > scaleZ)
440 {
441 scale *= scaleX;
442 }
443 else
444 {
445 scale *= scaleZ;
446 }
447 }
448 else if (scaleY > scaleZ)
449 {
450 scale *= scaleY;
451 }
452 else
453 {
454 scale *= scaleZ;
455 }
456 return scale;
457}

◆ scaleX

- (GLfloat) scaleX

◆ scaleY

- (GLfloat) scaleY

◆ scaleZ

- (GLfloat) scaleZ

◆ scannerDisplayColor1

- (OOColor *) scannerDisplayColor1

Definition at line 1 of file OOVisualEffectEntity.m.

590{
591 return [[scanner_display_color1 retain] autorelease];
592}

Referenced by VisualEffectGetProperty().

+ Here is the caller graph for this function:

◆ scannerDisplayColor2

- (OOColor *) scannerDisplayColor2

Definition at line 1 of file OOVisualEffectEntity.m.

596{
597 return [[scanner_display_color2 retain] autorelease];
598}

Referenced by VisualEffectGetProperty().

+ Here is the caller graph for this function:

◆ scannerDisplayColorForShip:flash:scannerDisplayColor1:

- (GLfloat *) scannerDisplayColorForShip: (BOOL)
flash: (OOColor *)
scannerDisplayColor1: (OOColor *) scannerDisplayColor2 

Definition at line 619 of file OOVisualEffectEntity.m.

622{
623
625 {
627 {
628 [scannerDisplayColor1 getRed:&scripted_color[0] green:&scripted_color[1] blue:&scripted_color[2] alpha:&scripted_color[3]];
629 }
630
632 {
633 [scannerDisplayColor2 getRed:&scripted_color[0] green:&scripted_color[1] blue:&scripted_color[2] alpha:&scripted_color[3]];
634 }
635
637 {
638 if (flash)
639 [scannerDisplayColor1 getRed:&scripted_color[0] green:&scripted_color[1] blue:&scripted_color[2] alpha:&scripted_color[3]];
640 else
641 [scannerDisplayColor2 getRed:&scripted_color[0] green:&scripted_color[1] blue:&scripted_color[2] alpha:&scripted_color[3]];
642 }
643
644 return scripted_color;
645 }
646
647 return default_color; // transparent black if not specified
648}
static GLfloat scripted_color[4]
static GLfloat default_color[4]
void getRed:green:blue:alpha:(float *red,[green] float *green,[blue] float *blue,[alpha] float *alpha)
Definition OOColor.m:368

◆ script

- (OOJSScript *) script

◆ scriptInfo

- (NSDictionary *) scriptInfo

◆ setBeaconCode:

- (void) setBeaconCode: (NSString *) bcode
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

772 :(NSString *)bcode
773{
774 if ([bcode length] == 0) bcode = nil;
775
776 if (_beaconCode != bcode)
777 {
778 [_beaconCode release];
779 _beaconCode = [bcode copy];
780
782 }
783 // if not blanking code and label is currently blank, default label to code
784 if (bcode != nil && (_beaconLabel == nil || [_beaconLabel length] == 0))
785 {
786 [self setBeaconLabel:bcode];
787 }
788
789}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setBeaconLabel:

- (void) setBeaconLabel: (NSString *) blabel
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

798 :(NSString *)blabel
799{
800 if ([blabel length] == 0) blabel = nil;
801
802 if (_beaconLabel != blabel)
803 {
804 [_beaconLabel release];
805 _beaconLabel = [OOExpand(blabel) retain];
806 }
807}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setHullHeatLevel:

- (void) setHullHeatLevel: (GLfloat) value

Definition at line 619 of file OOVisualEffectEntity.m.

887 :(GLfloat)value
888{
889 _hullHeatLevel = OOClamp_0_1_f(value);
890}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setIsBreakPattern:

- (void) setIsBreakPattern: (BOOL) bp

Definition at line 619 of file OOVisualEffectEntity.m.

700 :(BOOL)bp
701{
703}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setMesh:

- (void) setMesh: (OOMesh *) mesh

Definition at line 1 of file OOVisualEffectEntity.m.

202 :(OOMesh *)mesh
203{
204 if (mesh != [self mesh])
205 {
206 [self setDrawable:mesh];
207 }
208}

Referenced by VisualEffectSetMaterialsInternal().

+ Here is the caller graph for this function:

◆ setNextBeacon:

- (void) setNextBeacon: (Entity <OOBeaconEntity> *) beaconShip
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

862 :(Entity <OOBeaconEntity> *)beaconShip
863{
864 if (beaconShip != [self nextBeacon])
865 {
866 [_nextBeacon release];
867 _nextBeacon = [beaconShip weakRetain];
868 }
869}
Entity< OOBeaconEntity > * nextBeacon()
OOWeakReference * _nextBeacon

◆ setNoDrawDistance

- (void) setNoDrawDistance

Definition at line 1 of file OOVisualEffectEntity.m.

267{
268 GLfloat r = _profileRadius * [self scaleMax];
270
271}
#define NO_DRAW_DISTANCE_FACTOR
Definition Entity.h:46

◆ setPrevBeacon:

- (void) setPrevBeacon: (Entity <OOBeaconEntity> *) beaconShip
implementation

Reimplemented from <OOBeaconEntity>.

Definition at line 619 of file OOVisualEffectEntity.m.

852 :(Entity <OOBeaconEntity> *)beaconShip
853{
854 if (beaconShip != [self prevBeacon])
855 {
856 [_prevBeacon release];
857 _prevBeacon = [beaconShip weakRetain];
858 }
859}
OOWeakReference * _prevBeacon
Entity< OOBeaconEntity > * prevBeacon()

◆ setScaleX:

- (void) setScaleX: (GLfloat) factor

Definition at line 1 of file OOVisualEffectEntity.m.

465 :(GLfloat)factor
466{
467 // rescale subentities
469 GLfloat flasher_factor = pow(factor/scaleX,1.0/3.0);
470 foreach (se, [self subEntities])
471 {
472 HPVector move = [se position];
473 move.x *= factor/scaleX;
474 [se setPosition:move];
475 if ([se isVisualEffect])
476 {
477 [(OOVisualEffectEntity*)se setScaleX:factor];
478 }
479 else
480 {
481 [se rescaleBy:flasher_factor];
482 }
483 }
484
485 scaleX = factor;
486 [self setNoDrawDistance];
487}

Referenced by VisualEffectScale(), and VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setScaleY:

- (void) setScaleY: (GLfloat) factor

Definition at line 1 of file OOVisualEffectEntity.m.

496 :(GLfloat)factor
497{
498 // rescale subentities
500 GLfloat flasher_factor = pow(factor/scaleY,1.0/3.0);
501 foreach (se, [self subEntities])
502 {
503 HPVector move = [se position];
504 move.y *= factor/scaleY;
505 [se setPosition:move];
506 if ([se isVisualEffect])
507 {
508 [(OOVisualEffectEntity*)se setScaleY:factor];
509 }
510 else
511 {
512 [se rescaleBy:flasher_factor];
513 }
514 }
515
516 scaleY = factor;
517 [self setNoDrawDistance];
518}

Referenced by VisualEffectScale(), and VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setScaleZ:

- (void) setScaleZ: (GLfloat) factor

Definition at line 1 of file OOVisualEffectEntity.m.

527 :(GLfloat)factor
528{
529 // rescale subentities
531 GLfloat flasher_factor = pow(factor/scaleZ,1.0/3.0);
532 foreach (se, [self subEntities])
533 {
534 HPVector move = [se position];
535 move.z *= factor/scaleZ;
536 [se setPosition:move];
537 if ([se isVisualEffect])
538 {
539 [(OOVisualEffectEntity*)se setScaleZ:factor];
540 }
541 else
542 {
543 [se rescaleBy:flasher_factor];
544 }
545 }
546
547 scaleZ = factor;
548 [self setNoDrawDistance];
549}

Referenced by VisualEffectScale(), and VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setScannerDisplayColor1:

- (void) setScannerDisplayColor1: (OOColor *) color

Definition at line 1 of file OOVisualEffectEntity.m.

601 :(OOColor *)color
602{
604
605 if (color == nil) color = [OOColor colorWithDescription:[effectinfoDictionary objectForKey:@"scanner_display_color1"]];
606 scanner_display_color1 = [color retain];
607}
OOColor * colorWithDescription:(id description)
Definition OOColor.m:127

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setScannerDisplayColor2:

- (void) setScannerDisplayColor2: (OOColor *) color

Definition at line 1 of file OOVisualEffectEntity.m.

610 :(OOColor *)color
611{
613
614 if (color == nil) color = [OOColor colorWithDescription:[effectinfoDictionary objectForKey:@"scanner_display_color2"]];
615 scanner_display_color2 = [color retain];
616}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setScript:

- (void) setScript: (NSString *) script_name

Definition at line 619 of file OOVisualEffectEntity.m.

714 :(NSString *)script_name
715{
716 NSMutableDictionary *properties = nil;
717
718 properties = [NSMutableDictionary dictionary];
719 [properties setObject:self forKey:@"visualEffect"];
720
721 [script autorelease];
722 script = [OOScript jsScriptFromFileNamed:script_name properties:properties];
723 // does not support legacy scripting
724 if (script == nil) {
725 script = [OOScript jsScriptFromFileNamed:@"oolite-default-effect-script.js" properties:properties];
726 }
727 [script retain];
728}
id jsScriptFromFileNamed:properties:(NSString *fileName,[properties] NSDictionary *properties)
Definition OOScript.m:192

◆ setShaderFloat1:

- (void) setShaderFloat1: (GLfloat) value

Definition at line 619 of file OOVisualEffectEntity.m.

899 :(GLfloat)value
900{
901 _shaderFloat1 = value;
902}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setShaderFloat2:

- (void) setShaderFloat2: (GLfloat) value

Definition at line 619 of file OOVisualEffectEntity.m.

911 :(GLfloat)value
912{
913 _shaderFloat2 = value;
914}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setShaderInt1:

- (void) setShaderInt1: (int) value

Definition at line 619 of file OOVisualEffectEntity.m.

923 :(int)value
924{
925 _shaderInt1 = value;
926}
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setShaderInt2:

- (void) setShaderInt2: (int) value

Definition at line 619 of file OOVisualEffectEntity.m.

935 :(int)value
936{
937 _shaderInt2 = value;
938}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setShaderVector1:

- (void) setShaderVector1: (Vector) value

Definition at line 619 of file OOVisualEffectEntity.m.

947 :(Vector)value
948{
949 _shaderVector1 = value;
950}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setShaderVector2:

- (void) setShaderVector2: (Vector) value

Definition at line 619 of file OOVisualEffectEntity.m.

959 :(Vector)value
960{
961 _shaderVector2 = value;
962}

Referenced by VisualEffectSetProperty().

+ Here is the caller graph for this function:

◆ setUpOneFlasher:

- (BOOL) setUpOneFlasher: (NSDictionary *) subentDict
implementation

Provided by category OOVisualEffectEntity(Private).

Definition at line 1 of file OOVisualEffectEntity.m.

290 :(NSDictionary *) subentDict
291{
293 [flasher setPosition:[subentDict oo_hpvectorForKey:@"position"]];
294 [self addSubEntity:flasher];
295 return YES;
296}
instancetype flasherWithDictionary:(NSDictionary *dictionary)

◆ setUpOneStandardSubentity:

- (BOOL) setUpOneStandardSubentity: (NSDictionary *) subentDict
implementation

Provided by category OOVisualEffectEntity(Private).

Definition at line 1 of file OOVisualEffectEntity.m.

299 :(NSDictionary *)subentDict
300{
301 OOVisualEffectEntity *subentity = nil;
302 NSString *subentKey = nil;
303 HPVector subPosition;
304 Quaternion subOrientation;
305
306 subentKey = [subentDict oo_stringForKey:@"subentity_key"];
307 if (subentKey == nil) {
308 OOLog(@"setup.visualeffect.badEntry.subentities",@"Failed to set up entity - no subentKey in %@",subentDict);
309 return NO;
310 }
311
312 subentity = [UNIVERSE newVisualEffectWithName:subentKey];
313 if (subentity == nil) {
314 OOLog(@"setup.visualeffect.badEntry.subentities",@"Failed to set up entity %@",subentKey);
315 return NO;
316 }
317
318 subPosition = [subentDict oo_hpvectorForKey:@"position"];
319 subOrientation = [subentDict oo_quaternionForKey:@"orientation"];
320
321 [subentity setPosition:subPosition];
322 [subentity setOrientation:subOrientation];
323
324 [self addSubEntity:subentity];
325
326 [subentity release];
327
328 return YES;
329}
#define OOLog(class, format,...)
Definition OOLogging.h:88
void setOrientation:(Quaternion quat)
Definition Entity.m:725

◆ setUpOneSubentity:

- (BOOL) setUpOneSubentity: (NSDictionary *) subentDict
implementation

Provided by category OOVisualEffectEntity(Private).

Definition at line 1 of file OOVisualEffectEntity.m.

274 :(NSDictionary *) subentDict
275{
276 NSString *type = [subentDict oo_stringForKey:@"type"];
277 if ([type isEqualToString:@"flasher"])
278 {
279 return [self setUpOneFlasher:subentDict];
280 }
281 else
282 {
283 return [self setUpOneStandardSubentity:subentDict];
284 }
285
286
287}

◆ setUpSubEntities

- (BOOL) setUpSubEntities

Definition at line 1 of file OOVisualEffectEntity.m.

243{
244 unsigned int i;
246 NSArray *subs = [effectinfoDictionary oo_arrayForKey:@"subentities"];
247
248 for (i = 0; i < [subs count]; i++)
249 {
250 [self setUpOneSubentity:[subs oo_dictionaryAtIndex:i]];
251 }
252
253 [self setNoDrawDistance];
254
255 return YES;
256}

Referenced by OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.

+ Here is the caller graph for this function:

◆ setUpVisualEffectFromDictionary:

- (BOOL) setUpVisualEffectFromDictionary: (NSDictionary *) effectDict

Definition at line 1 of file OOVisualEffectEntity.m.

100 :(NSDictionary *) effectDict
101{
103
104 effectinfoDictionary = [effectDict copy];
105 if (effectinfoDictionary == nil) effectinfoDictionary = [[NSDictionary alloc] init];
106
109
110 collision_radius = 0.0;
111
112 NSString *modelName = [effectDict oo_stringForKey:@"model"];
113 if (modelName != nil)
114 {
115 OOMesh *mesh = [OOMesh meshWithName:modelName
116 cacheKey:_effectKey
117 materialDictionary:[effectDict oo_dictionaryForKey:@"materials"]
118 shadersDictionary:[effectDict oo_dictionaryForKey:@"shaders"]
119 smooth:[effectDict oo_boolForKey:@"smooth" defaultValue:NO]
120 shaderMacros:OODefaultShipShaderMacros()
122 if (mesh == nil) return NO;
123 [self setMesh:mesh];
124 }
125
126 isImmuneToBreakPatternHide = [effectDict oo_boolForKey:@"is_break_pattern"];
127 scaleX = 1.0;
128 scaleY = 1.0;
129 scaleZ = 1.0;
130
131 [self clearSubEntities];
132 [self setUpSubEntities];
133
134 [self setScannerDisplayColor1:nil];
135 [self setScannerDisplayColor2:nil];
136
137 scanClass = CLASS_VISUAL_EFFECT;
138
139 [self setStatus:STATUS_EFFECT];
140
141 _hullHeatLevel = 60.0 / 256.0;
142 _shaderFloat1 = 0.0;
143 _shaderFloat2 = 0.0;
144 _shaderInt1 = 0;
145 _shaderInt2 = 0;
148
149 [self setBeaconCode:[effectDict oo_stringForKey:@"beacon"]];
150 [self setBeaconLabel:[effectDict oo_stringForKey:@"beacon_label" defaultValue:[self beaconCode]]];
151
152 scriptInfo = [[effectDict oo_dictionaryForKey:@"script_info" defaultValue:nil] retain];
153 [self setScript:[effectDict oo_stringForKey:@"script"]];
154
155 return YES;
156
158}
const OOMatrix kIdentityMatrix
Definition OOMatrix.m:31
const Quaternion kIdentityQuaternion
const Vector kZeroVector
Definition OOVector.m:28
OOScanClass scanClass
Definition Entity.h:106
instancetype meshWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:(NSString *name,[cacheKey] NSString *cacheKey,[materialDictionary] NSDictionary *materialDict,[shadersDictionary] NSDictionary *shadersDict,[smooth] BOOL smooth,[shaderMacros] NSDictionary *macros,[shaderBindingTarget] id< OOWeakReferenceSupport > object)
Definition OOMesh.m:233

◆ shaderFloat1

- (GLfloat) shaderFloat1

Definition at line 619 of file OOVisualEffectEntity.m.

894{
895 return _shaderFloat1;
896}

◆ shaderFloat2

- (GLfloat) shaderFloat2

Definition at line 619 of file OOVisualEffectEntity.m.

906{
907 return _shaderFloat2;
908}

◆ shaderInt1

- (int) shaderInt1

Definition at line 619 of file OOVisualEffectEntity.m.

918{
919 return _shaderInt1;
920}

◆ shaderInt2

- (int) shaderInt2

Definition at line 619 of file OOVisualEffectEntity.m.

930{
931 return _shaderInt2;
932}

◆ shaderVector1

- (Vector) shaderVector1

Definition at line 619 of file OOVisualEffectEntity.m.

942{
943 return _shaderVector1;
944}

◆ shaderVector2

- (Vector) shaderVector2

Definition at line 619 of file OOVisualEffectEntity.m.

954{
955 return _shaderVector2;
956}

◆ subEntities

- (NSArray *) subEntities

◆ subEntitiesForScript

- (NSArray *) subEntitiesForScript

Provided by category OOVisualEffectEntity(OOJavaScriptExtensions).

Definition at line 718 of file OOJSVisualEffect.m.

193{
194 return [[self visualEffectSubEntityEnumerator] allObjects];
195}

Referenced by OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, and VisualEffectGetProperty().

+ Here is the caller graph for this function:

◆ subEntityCount

- (NSUInteger) subEntityCount

Definition at line 1 of file OOVisualEffectEntity.m.

357{
358 return [subEntities count];
359}

◆ subEntityEnumerator

- (NSEnumerator *) subEntityEnumerator

Definition at line 1 of file OOVisualEffectEntity.m.

375{
376 return [[self subEntities] objectEnumerator];
377}

◆ update:

- (void) update: (OOTimeDelta) delta_t
implementation

Reimplemented from Entity.

Definition at line 619 of file OOVisualEffectEntity.m.

677 :(OOTimeDelta)delta_t
678{
679 [super update:delta_t];
680
682 [self doScriptEvent:OOJSID("effectSpawned")];
684 }
685
686 Entity *se = nil;
687 foreach (se, [self subEntities])
688 {
689 [se update:delta_t];
690 }
691}
double OOTimeDelta
Definition OOTypes.h:224
void update:(OOTimeDelta delta_t)
Definition Entity.m:929

◆ upVector

- (Vector) upVector

Definition at line 1 of file OOVisualEffectEntity.m.

577{
578 return _v_up;
579}

◆ visualEffectSubEntityEnumerator

- (NSEnumerator *) visualEffectSubEntityEnumerator

Definition at line 1 of file OOVisualEffectEntity.m.

363{
364 return [[self subEntities] objectEnumeratorFilteredWithSelector:@selector(isVisualEffect)];
365}

Member Data Documentation

◆ _beaconCode

- (NSString*) _beaconCode
private

Definition at line 69 of file OOVisualEffectEntity.h.

◆ _beaconDrawable

- (id<OOHUDBeaconIcon>) _beaconDrawable
private

Definition at line 73 of file OOVisualEffectEntity.h.

◆ _beaconLabel

- (NSString*) _beaconLabel
private

Definition at line 70 of file OOVisualEffectEntity.h.

◆ _effectKey

- (NSString*) _effectKey
private

Definition at line 64 of file OOVisualEffectEntity.h.

◆ _haveExecutedSpawnAction

- (BOOL) _haveExecutedSpawnAction
private

Definition at line 66 of file OOVisualEffectEntity.h.

◆ _hullHeatLevel

- (GLfloat) _hullHeatLevel
private

Definition at line 49 of file OOVisualEffectEntity.h.

◆ _nextBeacon

- (OOWeakReference*) _nextBeacon
private

Definition at line 72 of file OOVisualEffectEntity.h.

◆ _prevBeacon

- (OOWeakReference*) _prevBeacon
private

Definition at line 71 of file OOVisualEffectEntity.h.

◆ _profileRadius

- (GLfloat) _profileRadius
private

Definition at line 44 of file OOVisualEffectEntity.h.

◆ _shaderFloat1

- (GLfloat) _shaderFloat1
private

Definition at line 50 of file OOVisualEffectEntity.h.

◆ _shaderFloat2

- (GLfloat) _shaderFloat2
private

Definition at line 51 of file OOVisualEffectEntity.h.

◆ _shaderInt1

- (int) _shaderInt1
private

Definition at line 52 of file OOVisualEffectEntity.h.

◆ _shaderInt2

- (int) _shaderInt2
private

Definition at line 53 of file OOVisualEffectEntity.h.

◆ _shaderVector1

- (Vector) _shaderVector1
private

Definition at line 54 of file OOVisualEffectEntity.h.

◆ _shaderVector2

- (Vector) _shaderVector2
private

Definition at line 55 of file OOVisualEffectEntity.h.

◆ _v_forward

- (Vector) _v_forward
private

Definition at line 57 of file OOVisualEffectEntity.h.

◆ _v_right

- (Vector) _v_right
private

Definition at line 59 of file OOVisualEffectEntity.h.

◆ _v_up

- (Vector) _v_up
private

Definition at line 58 of file OOVisualEffectEntity.h.

◆ effectinfoDictionary

- (NSDictionary*) effectinfoDictionary
private

Definition at line 42 of file OOVisualEffectEntity.h.

◆ scaleX

- (GLfloat) scaleX
private

Definition at line 76 of file OOVisualEffectEntity.h.

◆ scaleY

- (GLfloat) scaleY
private

Definition at line 77 of file OOVisualEffectEntity.h.

◆ scaleZ

- (GLfloat) scaleZ
private

Definition at line 78 of file OOVisualEffectEntity.h.

◆ scanner_display_color1

- (OOColor*) scanner_display_color1
private

Definition at line 46 of file OOVisualEffectEntity.h.

◆ scanner_display_color2

- (OOColor*) scanner_display_color2
private

Definition at line 47 of file OOVisualEffectEntity.h.

◆ script

- (OOJSScript *) script
private

Definition at line 61 of file OOVisualEffectEntity.h.

Referenced by VisualEffectGetProperty().

◆ scriptInfo

- (NSDictionary *) scriptInfo
private

Definition at line 62 of file OOVisualEffectEntity.h.

Referenced by VisualEffectGetProperty().

◆ subEntities

- (NSArray *) subEntities
private

Definition at line 40 of file OOVisualEffectEntity.h.


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