Starsector API
Loading...
Searching...
No Matches
RulesAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign.rules;
2
3import java.util.List;
4import java.util.Map;
5import java.util.Random;
6
7import com.fs.starfarer.api.campaign.InteractionDialogAPI;
8import com.fs.starfarer.api.campaign.SectorEntityToken;
9
10public interface RulesAPI {
11
12 List<RuleAPI> getAllMatching(String currentRule, String trigger, InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap);
13 RuleAPI getBestMatching(String currentRule, String trigger, InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap);
14
16 Map<String, String> getTokenReplacements(String ruleId, SectorEntityToken target, Map<String, MemoryAPI> memoryMap);
17
18 String performTokenReplacement(String ruleId, String text, SectorEntityToken entity, Map<String, MemoryAPI> memoryMap);
19 void setRandomForNextRulePick(Random random);
20}
String performTokenReplacement(String ruleId, String text, SectorEntityToken entity, Map< String, MemoryAPI > memoryMap)
Map< String, String > getTokenReplacements(String ruleId, SectorEntityToken target, Map< String, MemoryAPI > memoryMap)
void addTokenReplacementGenerator(RuleTokenReplacementGeneratorPlugin generator)
List< RuleAPI > getAllMatching(String currentRule, String trigger, InteractionDialogAPI dialog, Map< String, MemoryAPI > memoryMap)
RuleAPI getBestMatching(String currentRule, String trigger, InteractionDialogAPI dialog, Map< String, MemoryAPI > memoryMap)