Oolite
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:

◆ 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: