Package com.fs.starfarer.api.characters
Interface PersonAPI
- All Superinterfaces:
HasMemory
- Author:
- Alex Mosolov Copyright 2012 Fractal Softworks, LLC
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
float
getFleet()
For officers, the fleet they're in.getId()
getName()
getPost()
getRank()
getStats()
getTags()
getVoice()
boolean
void
boolean
isAICore()
boolean
boolean
isFemale()
boolean
isMale()
boolean
isPlayer()
void
void
setAICoreId
(String aiCoreId) void
setContactWeight
(float contactWeight) void
setFaction
(String factionId) void
setFleet
(CampaignFleetAPI fleet) For officers, the fleet they're in.void
setGender
(FullName.Gender gender) void
void
setImportance
(PersonImportance importance) void
setImportanceAndVoice
(PersonImportance importance, Random random) The passed in random is used to set the "voice".void
void
void
setPersonality
(String personality) void
setPortraitSprite
(String portraitSprite) void
void
void
setStats
(MutableCharacterStatsAPI stats) void
boolean
-
Method Details
-
setPersonality
-
getStats
MutableCharacterStatsAPI getStats() -
getRank
String getRank() -
getRankArticle
String getRankArticle() -
getRankId
String getRankId() -
setRankId
-
getPost
String getPost() -
getPostArticle
String getPostArticle() -
setPostId
-
getPostId
String getPostId() -
getName
FullName getName() -
setName
-
getPortraitSprite
String getPortraitSprite() -
setPortraitSprite
-
getGender
FullName.Gender getGender() -
isMale
boolean isMale() -
isFemale
boolean isFemale() -
getMemory
MemoryAPI getMemory() -
getMemoryWithoutUpdate
MemoryAPI getMemoryWithoutUpdate()- Specified by:
getMemoryWithoutUpdate
in interfaceHasMemory
-
wantsToContactPlayer
boolean wantsToContactPlayer() -
incrWantsToContactReasons
void incrWantsToContactReasons() -
decrWantsToContactReasons
void decrWantsToContactReasons() -
getContactWeight
float getContactWeight() -
setContactWeight
void setContactWeight(float contactWeight) -
getFaction
FactionAPI getFaction() -
setFaction
-
getRelToPlayer
RelationshipAPI getRelToPlayer() -
getId
String getId() -
hasTag
-
addTag
-
removeTag
-
getTags
-
clearTags
void clearTags() -
isPlayer
boolean isPlayer() -
isDefault
boolean isDefault() -
getPersonalityAPI
PersonalityAPI getPersonalityAPI() -
getAICoreId
String getAICoreId() -
setAICoreId
-
isAICore
boolean isAICore() -
getNameString
String getNameString() -
setGender
-
getFleet
CampaignFleetAPI getFleet()For officers, the fleet they're in.- Returns:
-
setFleet
For officers, the fleet they're in. -
getFleetCommanderStats
MutableCharacterStatsAPI getFleetCommanderStats() -
setId
-
getMarket
MarketAPI getMarket() -
setMarket
-
getImportance
PersonImportance getImportance() -
setImportance
-
setImportanceAndVoice
The passed in random is used to set the "voice". These are paired since voice is based on importance.- Parameters:
importance
-random
-
-
getHisOrHer
String getHisOrHer() -
getHeOrShe
String getHeOrShe() -
getSortedContactTags
List<ContactTagSpec> getSortedContactTags() -
getSortedContactTagStrings
-
getHimOrHer
String getHimOrHer() -
getManOrWoman
String getManOrWoman() -
getVoice
String getVoice() -
setVoice
-
setStats
-