Oolite 1.91.0.7646-241128-10e222e
|
import "OOJSPlayer.h"
import "OOJSEntity.h"
import "OOJSShip.h"
import "OOJSVector.h"
import "OOJavaScriptEngine.h"
import "EntityOOJavaScriptExtensions.h"
import "PlayerEntity.h"
import "PlayerEntityContracts.h"
import "PlayerEntityScriptMethods.h"
import "PlayerEntityLegacyScriptEngine.h"
import "OOConstToString.h"
import "OOFunctionAttributes.h"
import "OOCollectionExtractors.h"
import "OOStringParsing.h"
Go to the source code of this file.
Functions | |
static JSBool | PlayerGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | PlayerSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | PlayerAddMessageToArrivalReport (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerAudioMessage (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerCommsMessage (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerConsoleMessage (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerEndScenario (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerIncreaseContractReputation (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerDecreaseContractReputation (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerIncreasePassengerReputation (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerDecreasePassengerReputation (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerIncreaseParcelReputation (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerDecreaseParcelReputation (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerReplaceShip (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerSetEscapePodDestination (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerSetPlayerRole (JSContext *context, uintN argc, jsval *vp) |
static JSBool | PlayerStopAudioMessage (JSContext *context, uintN argc, jsval *vp) |
void | InitOOJSPlayer (JSContext *context, JSObject *global) |
JSClass * | JSPlayerClass (void) |
JSObject * | JSPlayerPrototype (void) |
JSObject * | JSPlayerObject (void) |
PlayerEntity * | OOPlayerForScripting (void) |
Variables | |
static JSObject * | sPlayerPrototype |
static JSObject * | sPlayerObject |
static JSClass | sPlayerClass |
static JSPropertySpec | sPlayerProperties [] |
static JSFunctionSpec | sPlayerMethods [] |
anonymous enum |
Definition at line 84 of file OOJSPlayer.m.
void InitOOJSPlayer | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 163 of file OOJSPlayer.m.
References OOJS_PROP_READONLY, OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sPlayerClass, sPlayerMethods, sPlayerObject, sPlayerProperties, and sPlayerPrototype.
JSClass * JSPlayerClass | ( | void | ) |
Definition at line 173 of file OOJSPlayer.m.
References sPlayerClass.
JSObject * JSPlayerObject | ( | void | ) |
Definition at line 185 of file OOJSPlayer.m.
References sPlayerObject.
Referenced by InitOOJSPlayerShip().
JSObject * JSPlayerPrototype | ( | void | ) |
Definition at line 179 of file OOJSPlayer.m.
References sPlayerPrototype.
PlayerEntity * OOPlayerForScripting | ( | void | ) |
Definition at line 191 of file OOJSPlayer.m.
References PLAYER, and PlayerEntity::setScriptTarget:.
Referenced by ClockGetProperty(), EquipmentInfoGetProperty(), GlobalClearExtraGuiScreenKeys(), GlobalGetProperty(), GlobalKeyBindingDescription(), GlobalSetExtraGuiScreenKeys(), JSClockToString(), ManifestGetProperty(), ManifestSetProperty(), MissionAddMessageText(), MissionGetProperty(), MissionMarkSystem(), MissionRunCallback(), MissionRunScreen(), MissionRunShipLibrary(), MissionSetInstructionsInternal(), MissionSetProperty(), MissionUnmarkSystem(), MissionVariablesDeleteProperty(), MissionVariablesGetProperty(), MissionVariablesSetProperty(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerGetProperty(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerSetProperty(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelDockingRequest(), PlayerShipCancelHyperspaceCountdown(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipHideHUDSelector(), PlayerShipRemoveAllCargo(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipResetCustomView(), PlayerShipResetScannerZoom(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipSetProperty(), PlayerShipShowHUDSelector(), PlayerShipTakeInternalDamage(), PlayerShipUseSpecialCargo(), ShipRunLegacyScriptActions(), StationDockPlayer(), SystemAddMoon(), SystemAddPlanet(), SystemGetProperty(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacySpawnShip(), SystemSendAllShipsAway(), SystemSetProperty(), SystemToString(), and WorldScriptsGetProperty().
|
static |
Definition at line 517 of file OOJSPlayer.m.
References PlayerEntity::addMessageToReport:, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), OOPlayerForScripting(), and OOStringFromJSValue().
|
static |
Definition at line 538 of file OOJSPlayer.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), OOPlayerForScripting(), OOSPEECHSETTINGS_COMMS, and OOStringFromJSValue().
|
static |
Definition at line 377 of file OOJSPlayer.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), and OOStringFromJSValue().
|
static |
Definition at line 402 of file OOJSPlayer.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), and OOStringFromJSValue().
|
static |
Definition at line 458 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 482 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 506 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 426 of file OOJSPlayer.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOStringFromJSValue(), and PLAYER.
|
static |
Definition at line 200 of file OOJSPlayer.m.
References ALERT_FLAG_ALT, ALERT_FLAG_ENERGY, ALERT_FLAG_HOSTILES, ALERT_FLAG_MASS_LOCK, ALERT_FLAG_TEMP, PlayerEntity::commanderName, DockingClearanceStatusToString(), kPlayer_alertAltitude, kPlayer_alertCondition, kPlayer_alertEnergy, kPlayer_alertHostiles, kPlayer_alertMassLocked, kPlayer_alertTemperature, kPlayer_bounty, kPlayer_contractReputation, kPlayer_contractReputationPrecise, kPlayer_credits, kPlayer_dockingClearanceStatus, kPlayer_escapePodRescueTime, kPlayer_legalStatus, kPlayer_name, kPlayer_parcelReputation, kPlayer_parcelReputationPrecise, kPlayer_passengerReputation, kPlayer_passengerReputationPrecise, kPlayer_rank, kPlayer_roleWeights, kPlayer_score, kPlayer_trumbleCount, nil, OODisplayRatingStringFromKillCount(), OODisplayStringFromLegalStatus(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), OOPlayerForScripting(), PlayerEntity::roleWeights, and sPlayerProperties.
|
static |
Definition at line 446 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 470 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 494 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 560 of file OOJSPlayer.m.
References ShipEntity::doScriptEvent:withArgument:, ShipEntity::doScriptEvent:withArgument:andArgument:, ENTITY_PERSONALITY_MAX, EXPECT_NOT, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOJSReportError(), OOPlayerForScripting(), OOStringFromJSValue(), PlayerEntity::replaceShipWithNamedShip:, and ShipEntity::setEntityPersonalityInt:.
|
static |
Definition at line 606 of file OOJSPlayer.m.
References PlayerEntity::addToAdjustTime:, EXPECT_NOT, MAX_JUMP_RANGE, nil, OOIsPlayerStale(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSNativeObjectFromJSValue(), OOJSReportBadArguments(), OOJSReportError(), OOPlayerForScripting(), ranrot_rand, PlayerEntity::setDockTarget:, PlayerEntity::setTargetSystemID:, and UNIVERSE.
|
static |
Definition at line 697 of file OOJSPlayer.m.
References PlayerEntity::addRoleToPlayer:, PlayerEntity::addRoleToPlayer:inSlot:, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadArguments(), OOPlayerForScripting(), and OOStringFromJSValue().
|
static |
Definition at line 306 of file OOJSPlayer.m.
References kPlayer_bounty, kPlayer_credits, kPlayer_escapePodRescueTime, kPlayer_name, kPlayer_score, MAX, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOPlayerForScripting(), OOStringFromJSValue(), PlayerEntity::setBounty:withReason:, PlayerEntity::setCommanderName:, PlayerEntity::setCreditBalance:, PlayerEntity::setEscapePodRescueTime:, PlayerEntity::setScore:, and sPlayerProperties.
|
static |
Definition at line 727 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, and UNIVERSE.
|
static |
Definition at line 67 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), and JSPlayerClass().
|
static |
Definition at line 141 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer().
|
static |
Definition at line 44 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), and JSPlayerObject().
|
static |
Definition at line 112 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), PlayerGetProperty(), and PlayerSetProperty().
|
static |
Definition at line 43 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), and JSPlayerPrototype().