Starsector API
Loading...
Searching...
No Matches
CommMessageAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign.comm;
2
3import java.awt.Color;
4import java.util.Collection;
5import java.util.List;
6import java.util.Map;
7
8import org.lwjgl.util.vector.Vector2f;
9
10import com.fs.starfarer.api.campaign.OnMessageDeliveryScript;
11import com.fs.starfarer.api.campaign.SectorEntityToken;
12import com.fs.starfarer.api.campaign.econ.MarketAPI;
13import com.fs.starfarer.api.campaign.events.CampaignEventPlugin;
14import com.fs.starfarer.api.campaign.events.CampaignEventPlugin.PriceUpdatePlugin;
15import com.fs.starfarer.api.util.Highlights;
16
17public interface CommMessageAPI {
18
19 public static enum MessageClickAction {
20 FLEET_TAB,
21 REFIT_TAB,
22 INTEL_TAB,
23 CHARACTER_TAB,
24 INCOME_TAB,
25 COLONY_INFO,
26 INTERACTION_DIALOG,
27 NOTHING,
28 }
29
30
31 public static final String MESSAGE_FACTION_ID_KEY = "CMAPIfactionId";
32 public static final String MESSAGE_PERSON_ID_KEY = "CMAPIpersonId";
33
34
36 void setSubjectColor(Color defaultColor);
39 String getId();
40 boolean isAddToIntelTab();
41 void setAddToIntelTab(boolean addToIntelTab);
42 String getType();
43 void setType(String type);
44 String getShortType();
45 void setShortType(String shortType);
47 void setDeliveredBy(String deliveredBy);
48 String getSender();
49 void setSender(String sender);
51 void setTimeSent(long timeSent);
53 void setTimeReceived(long timeReceived);
54 String getSubject();
55 void setSubject(String subject);
59 String getSound();
60 void setSound(String sound);
61 String getSmallIcon();
62 void setSmallIcon(String smallIcon);
63 String getImage();
64 void setImage(String largeIcon);
66 void setStarSystemId(String starSystemId);
68 void setLocationString(String locationString);
70 void setSubjectHighlights(Highlights subjectHighlights);
71 String getChannel();
72 void setChannel(String channel);
73 Object getCustomData();
74 void setCustomData(Object customData);
75 CampaignEventPlugin getEvent();
76 String getNote();
77 void setNote(String note);
78 Color getNoteColor();
79 void setNoteColor(Color noteColor);
80
81
82 boolean hasTag(String tag);
83 void addTag(String tag);
84 void removeTag(String tag);
85 Collection<String> getTags();
86 void clearTags();
87 Map<String, Object> getCustomMap();
88 String getMarketId();
89 void setMarketId(String marketId);
90 MarketAPI getMarket();
91 List<PriceUpdatePlugin> getPriceUpdates();
92 void setPriceUpdates(List<PriceUpdatePlugin> priceUpdates);
94 void setShowInCampaignList(boolean showInCampaignList);
95 MessageClickAction getAction();
96 void setAction(MessageClickAction action);
97 Vector2f getLocInHyper();
98 void setLocInHyper(Vector2f locInHyper);
101
102}
void setPriceUpdates(List< PriceUpdatePlugin > priceUpdates)
void setShowInCampaignList(boolean showInCampaignList)
void setSubjectHighlights(Highlights subjectHighlights)
void setAddToIntelTab(boolean addToIntelTab)
void setLocationString(String locationString)
void setCenterMapOnEntity(SectorEntityToken centerMapOnEntity)
void setAction(MessageClickAction action)
void setOnDelivery(OnMessageDeliveryScript onDelivery)