1package com.fs.starfarer.api.campaign.events;
3import org.lwjgl.util.vector.Vector2f;
5import com.fs.starfarer.api.campaign.FactionAPI;
6import com.fs.starfarer.api.campaign.LocationAPI;
7import com.fs.starfarer.api.campaign.SectorEntityToken;
8import com.fs.starfarer.api.campaign.econ.MarketAPI;
12 private Object custom;
29 this(market.getPrimaryEntity());
38 this.location = location;
42 if (entity !=
null)
return entity.
getMarket();
58 this.location = location;
120 final int prime = 31;
122 if (custom !=
null) {
123 result = prime * result + ((custom ==
null) ? 0 : custom.hashCode());
125 result = prime * result + ((entity ==
null) ? 0 : entity.hashCode());
126 result = prime * result + ((location ==
null) ? 0 : location.hashCode());
127 result = prime * result + ((extra ==
null) ? 0 : extra.hashCode());
139 if (getClass() != obj.getClass())
142 if (custom !=
null && custom.equals(other.custom)) {
146 if (custom ==
null) {
147 if (other.custom !=
null)
149 }
else if (!custom.equals(other.custom))
151 if (entity ==
null) {
152 if (other.entity !=
null)
154 }
else if (entity != other.entity)
156 if (location ==
null) {
157 if (other.location !=
null)
159 }
else if (location != other.location)
162 if (other.extra !=
null)
164 }
else if (!extra.equals(other.extra))
172 if (entity !=
null) {
CampaignEventTarget(SectorEntityToken entity)
CampaignEventTarget(Object custom)
Vector2f getLocationInHyperspace()
SectorEntityToken getEntity()
void setEntity(SectorEntityToken entity)
void setExtra(Object extra)
LocationAPI getLocation()
void setCustom(Object custom)
boolean equals(Object obj)
CampaignEventTarget(MarketAPI market)
CampaignEventTarget(LocationAPI location)
void setLocation(LocationAPI location)
LocationAPI getContainingLocation()