Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOPlanetEntity(OOJavaScriptExtensions) Category Reference

Instance Methods

(BOOL) - isVisibleToScripts [implementation]
 
(void) - getJSClass:andPrototype: [implementation]
 
(NSString *) - oo_jsClassName [implementation]
 

Detailed Description

Definition at line 107 of file OOJSPlanet.m.

Method Documentation

◆ getJSClass:andPrototype:

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

Definition at line 201 of file OOJSPlanet.m.

116 :(JSClass **)outClass andPrototype:(JSObject **)outPrototype
117{
118 *outClass = &sPlanetClass;
119 *outPrototype = sPlanetPrototype;
120}
static JSClass sPlanetClass
Definition OOJSPlanet.m:42
static JSObject * sPlanetPrototype
Definition OOJSPlanet.m:35

References OOColor::colorWithDescription:, JSValueToQuaternion(), JSValueToVector(), kPlanet_airColor, kPlanet_airColorMixRatio, kPlanet_airDensity, kPlanet_illuminationColor, kPlanet_name, kPlanet_orientation, kPlanet_rotationalVelocity, kPlanet_terminatorThresholdVector, kPlanet_texture, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSPauseTimeLimiter(), OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOJSReportWarning(), OOJSResumeTimeLimiter(), OOStringFromJSValue(), and sPlanetProperties.

+ Here is the call graph for this function:

◆ isVisibleToScripts

- (BOOL) isVisibleToScripts
implementation

Definition at line 201 of file OOJSPlanet.m.

110{
111 OOStellarBodyType type = [self planetType];
112 return type == STELLAR_TYPE_NORMAL_PLANET || type == STELLAR_TYPE_MOON;
113}
OOStellarBodyType
@ STELLAR_TYPE_MOON
@ STELLAR_TYPE_NORMAL_PLANET

◆ oo_jsClassName

- (NSString *) oo_jsClassName
implementation

Definition at line 201 of file OOJSPlanet.m.

124{
125 switch ([self planetType])
126 {
128 return @"Planet";
130 return @"Moon";
131 default:
132 return @"Unknown";
133 }
134}

The documentation for this category was generated from the following file: