Class PersonMissionSpec

java.lang.Object
com.fs.starfarer.api.loading.PersonMissionSpec

public class PersonMissionSpec extends Object
Note: if person id, tagsAll, tagsAny, and tagsNotAny are all blank, the mission will not be offered by any contact without specific scripting to make it so (via BeginMission, etc). Otherwise, the mission may be offered by any contact that meets the conditions specified by these columns.
Author:
Alex Copyright 2021 Fractal Softworks, LLC
  • Field Details

    • missionId

      protected String missionId
    • personId

      protected String personId
    • tags

      protected Set<String> tags
    • tagsAny

      protected Set<String> tagsAny
    • tagsAll

      protected Set<String> tagsAll
    • tagsNotAny

      protected Set<String> tagsNotAny
    • reqMissionAny

      protected Set<String> reqMissionAny
    • reqMissionAll

      protected Set<String> reqMissionAll
    • reqMissionNone

      protected Set<String> reqMissionNone
    • min

      protected RepLevel min
    • max

      protected RepLevel max
    • freq

      protected float freq
    • minTimeout

      protected float minTimeout
    • maxTimeout

      protected float maxTimeout
    • importance

      protected PersonImportance importance
    • pluginClass

      protected String pluginClass
    • icon

      protected String icon
  • Constructor Details

    • PersonMissionSpec

      public PersonMissionSpec(org.json.JSONObject row) throws org.json.JSONException
      Throws:
      org.json.JSONException
  • Method Details

    • getIcon

      public String getIcon()
    • setIcon

      public void setIcon(String icon)
    • getReqMissionAny

      public Set<String> getReqMissionAny()
    • getReqMissionAll

      public Set<String> getReqMissionAll()
    • getReqMissionNone

      public Set<String> getReqMissionNone()
    • getMissionId

      public String getMissionId()
    • setMissionId

      public void setMissionId(String missionId)
    • getPersonId

      public String getPersonId()
    • setPersonId

      public void setPersonId(String personId)
    • getMinRep

      public RepLevel getMinRep()
    • setMinRep

      public void setMinRep(RepLevel min)
    • getMaxRep

      public RepLevel getMaxRep()
    • setMaxRep

      public void setMaxRep(RepLevel max)
    • getFreq

      public float getFreq()
    • setFreq

      public void setFreq(float freq)
    • getMinTimeout

      public float getMinTimeout()
    • setMinTimeout

      public void setMinTimeout(float minTimeout)
    • getMaxTimeout

      public float getMaxTimeout()
    • setMaxTimeout

      public void setMaxTimeout(float maxTimeout)
    • getImportance

      public PersonImportance getImportance()
    • setImportance

      public void setImportance(PersonImportance importance)
    • getPluginClass

      public String getPluginClass()
    • setPluginClass

      public void setPluginClass(String pluginClass)
    • getTagsAny

      public Set<String> getTagsAny()
    • getTagsAll

      public Set<String> getTagsAll()
    • getTagsNotAny

      public Set<String> getTagsNotAny()
    • createMission

      public HubMission createMission()
    • getTags

      public Set<String> getTags()
    • addTag

      public void addTag(String tag)
    • hasTag

      public boolean hasTag(String tag)
    • tagsMatch

      public boolean tagsMatch(Set<String> tags)
    • completedMissionsMatch

      public boolean completedMissionsMatch(Set<String> completed)