|
Map< String, Object > | getPersistentData () |
|
void | registerPlugin (CampaignPlugin plugin) |
|
void | unregisterPlugin (String pluginId) |
|
StarSystemAPI | getStarSystem (String name) |
|
StarSystemAPI | createStarSystem (String name) |
|
List< StarSystemAPI > | getStarSystems () |
|
void | removeStarSystem (StarSystemAPI system) |
|
void | setCurrentLocation (LocationAPI location) |
|
LocationAPI | getHyperspace () |
|
void | doHyperspaceTransition (CampaignFleetAPI fleet, SectorEntityToken jumpLocation, JumpDestination dest) |
|
CampaignClockAPI | getClock () |
|
CampaignFleetAPI | getPlayerFleet () |
|
FactionAPI | getFaction (String factionId) |
|
List< FactionAPI > | getAllFactions () |
|
List< String > | getAllWeaponIds () |
|
List< String > | getAllEmptyVariantIds () |
|
List< String > | getAllFighterWingIds () |
|
CampaignUIAPI | getCampaignUI () |
|
CampaignEventManagerAPI | getEventManager () |
|
void | setPaused (boolean paused) |
|
boolean | isPaused () |
|
void | addScript (EveryFrameScript script) |
|
void | removeScriptsOfClass (Class c) |
|
void | removeScript (EveryFrameScript script) |
|
void | addTransientScript (EveryFrameScript script) |
|
void | removeTransientScript (EveryFrameScript script) |
|
LocationAPI | getCurrentLocation () |
|
LocationAPI | getRespawnLocation () |
|
void | setRespawnLocation (LocationAPI respawnLocation) |
|
Vector2f | getRespawnCoordinates () |
|
CharacterDataAPI | getCharacterData () |
|
void | reportEventStage (CampaignEventPlugin event, String stage, MessagePriority priority) |
|
void | reportEventStage (CampaignEventPlugin event, String stage, SectorEntityToken sendFrom, MessagePriority priority) |
|
void | reportEventStage (CampaignEventPlugin event, String stage, SectorEntityToken sendFrom, MessagePriority priority, OnMessageDeliveryScript onDelivery) |
|
RulesAPI | getRules () |
|
long | getLastPlayerBattleTimestamp () |
|
boolean | isLastPlayerBattleWon () |
|
MemoryAPI | getMemory () |
|
MemoryAPI | getMemoryWithoutUpdate () |
|
IntelDataAPI | getIntel () |
|
SectorEntityToken | getEntityById (String id) |
|
List< SectorEntityToken > | getEntitiesWithTag (String tag) |
|
EconomyAPI | getEconomy () |
|
void | addListener (CampaignEventListener listener) |
|
void | addTransientListener (CampaignEventListener listener) |
|
void | addListenerWithTimeout (CampaignEventListener listener, float daysToKeep) |
|
void | removeListener (CampaignEventListener listener) |
|
List< CampaignEventListener > | getAllListeners () |
|
void | reportPlayerMarketTransaction (PlayerMarketTransaction transaction) |
|
void | reportFleetDespawned (CampaignFleetAPI fleet, FleetDespawnReason reason, Object param) |
|
void | reportFleetJumped (CampaignFleetAPI fleet, SectorEntityToken from, JumpDestination to) |
|
void | reportFleetReachedEntity (CampaignFleetAPI fleet, SectorEntityToken entity) |
|
void | reportBattleOccurred (CampaignFleetAPI primaryWinner, BattleAPI battle) |
|
void | reportBattleFinished (CampaignFleetAPI primaryWinner, BattleAPI battle) |
|
ReputationAdjustmentResult | adjustPlayerReputation (Object action, String factionId) |
|
ReputationAdjustmentResult | adjustPlayerReputation (Object action, PersonAPI person) |
|
EveryFrameScript | addPing (SectorEntityToken entity, String pingType) |
|
void | reportShowInteractionDialog (InteractionDialogAPI dialog) |
|
void | reportPlayerOpenedMarket (MarketAPI market) |
|
void | reportPlayerReputationChange (String faction, float delta) |
|
void | reportPlayerReputationChange (PersonAPI person, float delta) |
|
void | reportPlayerEngagement (EngagementResultAPI result) |
|
boolean | isInFastAdvance () |
|
PersonAPI | getPlayerPerson () |
|
void | reportPlayerOpenedMarketAndCargoUpdated (MarketAPI market) |
|
void | reportEncounterLootGenerated (FleetEncounterContextPlugin plugin, CargoAPI loot) |
|
void | reportPlayerClosedMarket (MarketAPI market) |
|
void | reportPlayerActivatedAbility (AbilityPlugin ability, Object param) |
|
void | reportPlayerDeactivatedAbility (AbilityPlugin ability, Object param) |
|
void | reportPlayerDumpedCargo (CargoAPI cargo) |
|
ImportantPeopleAPI | getImportantPeople () |
|
FactionAPI | getPlayerFaction () |
|
EveryFrameScript | addPing (SectorEntityToken entity, String pingType, Color colorOverride) |
|
ViewportAPI | getViewport () |
|
List< LocationAPI > | getAllLocations () |
|
String | getDifficulty () |
|
void | setDifficulty (String difficulty) |
|
boolean | isIronMode () |
|
boolean | hasScript (Class<?> clazz) |
|
PluginPickerAPI | getPluginPicker () |
|
String | getSeedString () |
|
void | setSeedString (String seedString) |
|
String | genUID () |
|
PersistentUIDataAPI | getUIData () |
|
void | setInFastAdvance (boolean isInNewGameAdvance) |
|
boolean | isInNewGameAdvance () |
|
void | setInNewGameAdvance (boolean isInNewGameAdvance) |
|
void | setPlayerFleet (CampaignFleetAPI playerFleet) |
|
void | setLastPlayerBattleTimestamp (long lastPlayerBattleTimestamp) |
|
void | setLastPlayerBattleWon (boolean lastPlayerBattleWon) |
|
void | reportPlayerDidNotTakeCargo (CargoAPI cargo) |
|
List< EveryFrameScript > | getScripts () |
|
List< EveryFrameScript > | getTransientScripts () |
|
GenericPluginManagerAPI | getGenericPlugins () |
|
EveryFrameScript | addPing (SectorEntityToken entity, CampaignPingSpec custom) |
|
void | reportEconomyMonthEnd () |
|
void | reportEconomyTick (int iterIndex) |
|
MutableCharacterStatsAPI | getPlayerStats () |
|
AutofitVariantsAPI | getAutofitVariants () |
|
IntelManagerAPI | getIntelManager () |
|
ListenerManagerAPI | getListenerManager () |
|
void | removeTransientScriptsOfClass (Class c) |
|
long | getPlayerBattleSeed () |
|
void | setPlayerBattleSeed (long nextPlayerBattleSeed) |
|
NascentGravityWellAPI | createNascentGravityWell (SectorEntityToken target, float radius) |
|
boolean | hasTransientScript (Class<?> clazz) |
|
List< SectorEntityToken > | getCustomEntitiesWithTag (String tag) |
|
void | doHyperspaceTransition (CampaignFleetAPI fleetAPI, SectorEntityToken jumpLocation, JumpDestination dest, float initialDelay) |
|
void | layInCourseFor (SectorEntityToken target) |
|
boolean | isFastForwardIteration () |
|
void | setFastForwardIteration (boolean isFastForwardIteration) |
|
MemoryAPI | getPlayerMemoryWithoutUpdate () |
|
void | removeStarSystemNextFrame (StarSystemAPI system) |
|
SectorEntityToken | getMousedOverEntity () |
|
Note: generics can not be used in scripts. They are used in this API purely to show the return/parameter types of functions more clearly.
- Author
- Alex Mosolov
Copyright 2012 Fractal Softworks, LLC
Definition at line 39 of file SectorAPI.java.
ReputationAdjustmentResult com.fs.starfarer.api.campaign.SectorAPI.adjustPlayerReputation |
( |
Object |
action, |
|
|
PersonAPI |
person |
|
) |
| |
Adjust the player's reputation with the specified person, based on the action.
This method will pick the highest-priority ReputationActionResponsePlugin and call its handlePlayerReputationAction() method with these parameters.
See CoreCampaignPluginImpl.handlePlayerReputationAction() for an implementation example.
- Parameters
-
- Returns
ReputationAdjustmentResult com.fs.starfarer.api.campaign.SectorAPI.adjustPlayerReputation |
( |
Object |
action, |
|
|
String |
factionId |
|
) |
| |
Adjust the player's reputation with the specified faction, based on the action.
This method will pick the highest-priority ReputationActionResponsePlugin and call its handlePlayerReputationAction() method with these parameters.
See CoreCampaignPluginImpl.handlePlayerReputationAction() for an implementation example.
- Parameters
-
- Returns