Oolite
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 568 of file PlayerEntityScriptMethods.m.

569{
570 return (Vector) { (float)internalCoordinates.x * 0.4f, (float)internalCoordinates.y * 0.2f, 0.0f };
571}

Referenced by PlayerShipGetProperty(), PlayerShipGetProperty(), SystemInfoGetProperty(), and SystemInfoGetProperty().

Here is the caller graph for this function:

◆ OOInternalCoordinatesFromGalactic()

NSPoint OOInternalCoordinatesFromGalactic ( Vector galacticCoordinates)

Definition at line 573 of file PlayerEntityScriptMethods.m.

574{
575 return (NSPoint) { (float)galacticCoordinates.x * 2.5f, (float)galacticCoordinates.y * 5.0f };
576}
OOScalar x
Definition OOVector.h:32
OOScalar y
Definition OOVector.h:33

References Vector::x, and Vector::y.

Referenced by MissionRunScreen(), MissionRunScreen(), PlayerShipSetProperty(), and PlayerShipSetProperty().

Here is the caller graph for this function: