Class CampaignEventTarget

java.lang.Object
com.fs.starfarer.api.campaign.events.CampaignEventTarget

public class CampaignEventTarget extends Object
  • Constructor Details

    • CampaignEventTarget

      public CampaignEventTarget(Object custom)
      custom *must* implement hashCode() and equals(). If two event targets have custom1.equals(custom2), then the event target is considered to be equal regardless of other data member values.
      Parameters:
      custom -
    • CampaignEventTarget

      public CampaignEventTarget(MarketAPI market)
    • CampaignEventTarget

      public CampaignEventTarget(SectorEntityToken entity)
    • CampaignEventTarget

      public CampaignEventTarget(LocationAPI location)
  • Method Details

    • getMarket

      public MarketAPI getMarket()
    • getLocationInHyperspace

      public org.lwjgl.util.vector.Vector2f getLocationInHyperspace()
    • getLocation

      public LocationAPI getLocation()
    • setLocation

      public void setLocation(LocationAPI location)
    • getEntity

      public SectorEntityToken getEntity()
    • setEntity

      public void setEntity(SectorEntityToken entity)
    • getCustom

      public Object getCustom()
    • setCustom

      public void setCustom(Object custom)
    • getExtra

      public Object getExtra()
    • setExtra

      public void setExtra(Object extra)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getFaction

      public FactionAPI getFaction()