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.util.Collection;
4import java.util.List;
5import java.util.Map;
6
7import java.awt.Color;
8
9import org.lwjgl.util.vector.Vector2f;
10
11import com.fs.starfarer.api.campaign.OnMessageDeliveryScript;
12import com.fs.starfarer.api.campaign.SectorEntityToken;
13import com.fs.starfarer.api.campaign.econ.MarketAPI;
14import com.fs.starfarer.api.campaign.events.CampaignEventPlugin;
15import com.fs.starfarer.api.campaign.events.CampaignEventPlugin.PriceUpdatePlugin;
16import com.fs.starfarer.api.util.Highlights;
17
18public interface CommMessageAPI {
19
20 public static enum MessageClickAction {
21 FLEET_TAB,
22 REFIT_TAB,
23 INTEL_TAB,
24 CHARACTER_TAB,
25 CARGO_TAB,
26 INCOME_TAB,
27 COLONY_INFO,
28 INTERACTION_DIALOG,
29 NOTHING,
30 }
31
32
33 public static final String MESSAGE_FACTION_ID_KEY = "CMAPIfactionId";
34 public static final String MESSAGE_PERSON_ID_KEY = "CMAPIpersonId";
35
36
38 void setSubjectColor(Color defaultColor);
41 String getId();
42 boolean isAddToIntelTab();
43 void setAddToIntelTab(boolean addToIntelTab);
44 String getType();
45 void setType(String type);
46 String getShortType();
47 void setShortType(String shortType);
49 void setDeliveredBy(String deliveredBy);
50 String getSender();
51 void setSender(String sender);
53 void setTimeSent(long timeSent);
55 void setTimeReceived(long timeReceived);
56 String getSubject();
57 void setSubject(String subject);
61 String getSound();
62 void setSound(String sound);
63 String getSmallIcon();
64 void setSmallIcon(String smallIcon);
65 String getImage();
66 void setImage(String largeIcon);
68 void setStarSystemId(String starSystemId);
70 void setLocationString(String locationString);
72 void setSubjectHighlights(Highlights subjectHighlights);
73 String getChannel();
74 void setChannel(String channel);
75 Object getCustomData();
76 void setCustomData(Object customData);
78 String getNote();
79 void setNote(String note);
80 Color getNoteColor();
81 void setNoteColor(Color noteColor);
82
83
84 boolean hasTag(String tag);
85 void addTag(String tag);
86 void removeTag(String tag);
87 Collection<String> getTags();
88 void clearTags();
89 Map<String, Object> getCustomMap();
90 String getMarketId();
91 void setMarketId(String marketId);
93 List<PriceUpdatePlugin> getPriceUpdates();
94 void setPriceUpdates(List<PriceUpdatePlugin> priceUpdates);
96 void setShowInCampaignList(boolean showInCampaignList);
97 MessageClickAction getAction();
98 void setAction(MessageClickAction action);
99 Vector2f getLocInHyper();
100 void setLocInHyper(Vector2f locInHyper);
103
104}
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)