Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
PlayerEntityScriptMethods.h File Reference
import "PlayerEntity.h"
+ Include dependency graph for PlayerEntityScriptMethods.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

category  PlayerEntity(ScriptMethods)
 

Functions

Vector OOGalacticCoordinatesFromInternal (NSPoint internalCoordinates)
 
NSPoint OOInternalCoordinatesFromGalactic (Vector galacticCoordinates)
 

Function Documentation

◆ OOGalacticCoordinatesFromInternal()

Vector OOGalacticCoordinatesFromInternal ( NSPoint internalCoordinates)

Definition at line 617 of file PlayerEntityScriptMethods.m.

618{
619 return (Vector){ (float)internalCoordinates.x * 0.4f, (float)internalCoordinates.y * 0.2f, 0.0f };
620}

Referenced by PlayerShipGetProperty(), and SystemInfoGetProperty().

+ Here is the caller graph for this function:

◆ OOInternalCoordinatesFromGalactic()

NSPoint OOInternalCoordinatesFromGalactic ( Vector galacticCoordinates)

Definition at line 623 of file PlayerEntityScriptMethods.m.

624{
625 return (NSPoint){ (float)galacticCoordinates.x * 2.5f, (float)galacticCoordinates.y * 5.0f };
626}

Referenced by MissionRunScreen(), and PlayerShipSetProperty().

+ Here is the caller graph for this function: