M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.Encounters.LocationEncounter Class Reference

Inherited by StoryMode.TrainingFieldEncounter, TaleWorlds.CampaignSystem.Encounters.CastleEncounter, TaleWorlds.CampaignSystem.Encounters.RetirementEncounter, TaleWorlds.CampaignSystem.Encounters.TownEncounter, and TaleWorlds.CampaignSystem.Encounters.VillageEncounter.

Public Member Functions

void AddAccompanyingCharacter (LocationCharacter locationCharacter, bool isFollowing=false)
 
AccompanyingCharacter GetAccompanyingCharacter (LocationCharacter locationCharacter)
 
AccompanyingCharacter GetAccompanyingCharacter (CharacterObject character)
 
void RemoveAccompanyingCharacter (LocationCharacter locationCharacter)
 
void RemoveAccompanyingCharacter (Hero hero)
 
void RemoveAllAccompanyingCharacters ()
 
void OnCharacterLocationChanged (LocationCharacter locationCharacter, Location fromLocation, Location toLocation)
 
virtual bool IsWorkshopLocation (Location location)
 
virtual bool IsTavern (Location location)
 
virtual IMission CreateAndOpenMissionController (Location nextLocation, Location previousLocation=null, CharacterObject talkToChar=null, string playerSpecialSpawnTag=null)
 

Public Attributes

bool IsInsideOfASettlement = false
 

Protected Member Functions

 LocationEncounter (Settlement settlement)
 

Properties

Settlement Settlement [get]
 
List< AccompanyingCharacterCharactersAccompanyingPlayer [get]
 

Constructor & Destructor Documentation

◆ LocationEncounter()

TaleWorlds.CampaignSystem.Encounters.LocationEncounter.LocationEncounter ( Settlement  settlement)
protected

Member Function Documentation

◆ AddAccompanyingCharacter()

void TaleWorlds.CampaignSystem.Encounters.LocationEncounter.AddAccompanyingCharacter ( LocationCharacter  locationCharacter,
bool  isFollowing = false 
)

◆ GetAccompanyingCharacter() [1/2]

AccompanyingCharacter TaleWorlds.CampaignSystem.Encounters.LocationEncounter.GetAccompanyingCharacter ( LocationCharacter  locationCharacter)

◆ GetAccompanyingCharacter() [2/2]

AccompanyingCharacter TaleWorlds.CampaignSystem.Encounters.LocationEncounter.GetAccompanyingCharacter ( CharacterObject  character)

◆ RemoveAccompanyingCharacter() [1/2]

void TaleWorlds.CampaignSystem.Encounters.LocationEncounter.RemoveAccompanyingCharacter ( LocationCharacter  locationCharacter)

◆ RemoveAccompanyingCharacter() [2/2]

void TaleWorlds.CampaignSystem.Encounters.LocationEncounter.RemoveAccompanyingCharacter ( Hero  hero)

◆ RemoveAllAccompanyingCharacters()

void TaleWorlds.CampaignSystem.Encounters.LocationEncounter.RemoveAllAccompanyingCharacters ( )

◆ OnCharacterLocationChanged()

void TaleWorlds.CampaignSystem.Encounters.LocationEncounter.OnCharacterLocationChanged ( LocationCharacter  locationCharacter,
Location  fromLocation,
Location  toLocation 
)

◆ IsWorkshopLocation()

virtual bool TaleWorlds.CampaignSystem.Encounters.LocationEncounter.IsWorkshopLocation ( Location  location)
virtual

◆ IsTavern()

virtual bool TaleWorlds.CampaignSystem.Encounters.LocationEncounter.IsTavern ( Location  location)
virtual

◆ CreateAndOpenMissionController()

virtual IMission TaleWorlds.CampaignSystem.Encounters.LocationEncounter.CreateAndOpenMissionController ( Location  nextLocation,
Location  previousLocation = null,
CharacterObject  talkToChar = null,
string  playerSpecialSpawnTag = null 
)
virtual

Member Data Documentation

◆ IsInsideOfASettlement

bool TaleWorlds.CampaignSystem.Encounters.LocationEncounter.IsInsideOfASettlement = false

Property Documentation

◆ Settlement

Settlement TaleWorlds.CampaignSystem.Encounters.LocationEncounter.Settlement
get

◆ CharactersAccompanyingPlayer

List<AccompanyingCharacter> TaleWorlds.CampaignSystem.Encounters.LocationEncounter.CharactersAccompanyingPlayer
get