|
Oolite
|
import "OOJSPlayer.h"import "EntityOOJavaScriptExtensions.h"import "OOJSEntity.h"import "OOJSShip.h"import "OOJSVector.h"import "OOJavaScriptEngine.h"import "PlayerEntityContracts.h"import "PlayerEntityLegacyScriptEngine.h"import "PlayerEntityScriptMethods.h"import "OOCollectionExtractors.h"import "OOConstToString.h"import "OOFunctionAttributes.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 78 of file OOJSPlayer.m.
| void InitOOJSPlayer | ( | JSContext * | context, |
| JSObject * | global ) |
Definition at line 151 of file OOJSPlayer.m.
References OOJS_PROP_READONLY, OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sPlayerClass, sPlayerMethods, sPlayerObject, sPlayerProperties, and sPlayerPrototype.
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext.
| JSClass * JSPlayerClass | ( | void | ) |
Definition at line 160 of file OOJSPlayer.m.
References sPlayerClass.
| JSObject * JSPlayerObject | ( | void | ) |
Definition at line 170 of file OOJSPlayer.m.
| JSObject * JSPlayerPrototype | ( | void | ) |
Definition at line 165 of file OOJSPlayer.m.
References sPlayerPrototype.
| PlayerEntity * OOPlayerForScripting | ( | void | ) |
Definition at line 175 of file OOJSPlayer.m.
Referenced by PlayerAddMessageToArrivalReport(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerAudioMessage(), PlayerGetProperty(), PlayerGetProperty(), PlayerReplaceShip(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerSetPlayerRole(), PlayerSetProperty(), and PlayerSetProperty().
|
static |
Definition at line 488 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 508 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 354 of file OOJSPlayer.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), and OOStringFromJSValue().
|
static |
Definition at line 379 of file OOJSPlayer.m.
References nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSReportBadArguments(), and OOStringFromJSValue().
|
static |
Definition at line 433 of file OOJSPlayer.m.
References PlayerEntity::decreaseContractReputation:, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 455 of file OOJSPlayer.m.
References PlayerEntity::decreaseParcelReputation:, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 477 of file OOJSPlayer.m.
References PlayerEntity::decreasePassengerReputation:, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 403 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 183 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 422 of file OOJSPlayer.m.
References PlayerEntity::increaseContractReputation:, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 444 of file OOJSPlayer.m.
References PlayerEntity::increaseParcelReputation:, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 466 of file OOJSPlayer.m.
References PlayerEntity::increasePassengerReputation:, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJS_RETURN_VOID.
|
static |
Definition at line 530 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 571 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 648 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 288 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 675 of file OOJSPlayer.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, and UNIVERSE.
|
static |
Definition at line 63 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), InitOOJSPlayer(), and JSPlayerClass().
|
static |
Definition at line 131 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), and InitOOJSPlayer().
|
static |
Definition at line 42 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), and JSPlayerObject().
|
static |
Definition at line 104 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), InitOOJSPlayer(), PlayerGetProperty(), PlayerGetProperty(), PlayerSetProperty(), and PlayerSetProperty().
|
static |
Definition at line 41 of file OOJSPlayer.m.
Referenced by InitOOJSPlayer(), and JSPlayerPrototype().