M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
Helpers.SettlementHelper Class Reference

Static Public Member Functions

static string GetRandomStuff (bool isFemale)
 
static Settlement FindNearestSettlement (Func< Settlement, bool > condition, IMapPoint toMapPoint=null)
 
static Settlement FindNearestHideout (Func< Settlement, bool > condition=null, IMapPoint toMapPoint=null)
 
static Settlement FindNearestTown (Func< Settlement, bool > condition=null, IMapPoint toMapPoint=null)
 
static Settlement FindNearestFortification (Func< Settlement, bool > condition=null, IMapPoint toMapPoint=null)
 
static Settlement FindNearestCastle (Func< Settlement, bool > condition=null, IMapPoint toMapPoint=null)
 
static Settlement FindNearestVillage (Func< Settlement, bool > condition=null, IMapPoint toMapPoint=null)
 
static int FindNextSettlementAroundMapPoint (IMapPoint mapPoint, float maxDistance, int lastIndex)
 
static Settlement FindRandomSettlement (Func< Settlement, bool > condition=null)
 
static Settlement FindRandomHideout (Func< Settlement, bool > condition=null)
 
static void TakeEnemyVillagersOutsideSettlements (Settlement settlementWhichChangedFaction)
 
static Settlement GetRandomTown (Clan fromFaction=null)
 
static Settlement GetBestSettlementToSpawnAround (Hero hero)
 
static IEnumerable< HeroGetAllHeroesOfSettlement (Settlement settlement, bool includePrisoners)
 
static int NumberOfVolunteersCanBeRecruitedForGarrison (Settlement settlement)
 
static bool IsThereAnyVolunteerCanBeRecruitedForGarrison (Settlement settlement)
 
static bool IsGarrisonStarving (Settlement settlement)
 
static void SpawnNotablesIfNeeded (Settlement settlement)
 

Member Function Documentation

◆ GetRandomStuff()

static string Helpers.SettlementHelper.GetRandomStuff ( bool  isFemale)
static

◆ FindNearestSettlement()

static Settlement Helpers.SettlementHelper.FindNearestSettlement ( Func< Settlement, bool >  condition,
IMapPoint  toMapPoint = null 
)
static

◆ FindNearestHideout()

static Settlement Helpers.SettlementHelper.FindNearestHideout ( Func< Settlement, bool >  condition = null,
IMapPoint  toMapPoint = null 
)
static

◆ FindNearestTown()

static Settlement Helpers.SettlementHelper.FindNearestTown ( Func< Settlement, bool >  condition = null,
IMapPoint  toMapPoint = null 
)
static

◆ FindNearestFortification()

static Settlement Helpers.SettlementHelper.FindNearestFortification ( Func< Settlement, bool >  condition = null,
IMapPoint  toMapPoint = null 
)
static

◆ FindNearestCastle()

static Settlement Helpers.SettlementHelper.FindNearestCastle ( Func< Settlement, bool >  condition = null,
IMapPoint  toMapPoint = null 
)
static

◆ FindNearestVillage()

static Settlement Helpers.SettlementHelper.FindNearestVillage ( Func< Settlement, bool >  condition = null,
IMapPoint  toMapPoint = null 
)
static

◆ FindNextSettlementAroundMapPoint()

static int Helpers.SettlementHelper.FindNextSettlementAroundMapPoint ( IMapPoint  mapPoint,
float  maxDistance,
int  lastIndex 
)
static

◆ FindRandomSettlement()

static Settlement Helpers.SettlementHelper.FindRandomSettlement ( Func< Settlement, bool >  condition = null)
static

◆ FindRandomHideout()

static Settlement Helpers.SettlementHelper.FindRandomHideout ( Func< Settlement, bool >  condition = null)
static

◆ TakeEnemyVillagersOutsideSettlements()

static void Helpers.SettlementHelper.TakeEnemyVillagersOutsideSettlements ( Settlement  settlementWhichChangedFaction)
static

◆ GetRandomTown()

static Settlement Helpers.SettlementHelper.GetRandomTown ( Clan  fromFaction = null)
static

◆ GetBestSettlementToSpawnAround()

static Settlement Helpers.SettlementHelper.GetBestSettlementToSpawnAround ( Hero  hero)
static

◆ GetAllHeroesOfSettlement()

static IEnumerable< Hero > Helpers.SettlementHelper.GetAllHeroesOfSettlement ( Settlement  settlement,
bool  includePrisoners 
)
static

◆ NumberOfVolunteersCanBeRecruitedForGarrison()

static int Helpers.SettlementHelper.NumberOfVolunteersCanBeRecruitedForGarrison ( Settlement  settlement)
static

◆ IsThereAnyVolunteerCanBeRecruitedForGarrison()

static bool Helpers.SettlementHelper.IsThereAnyVolunteerCanBeRecruitedForGarrison ( Settlement  settlement)
static

◆ IsGarrisonStarving()

static bool Helpers.SettlementHelper.IsGarrisonStarving ( Settlement  settlement)
static

◆ SpawnNotablesIfNeeded()

static void Helpers.SettlementHelper.SpawnNotablesIfNeeded ( Settlement  settlement)
static