M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
|
Common class for villages and towns.
Inherits TaleWorlds.ObjectSystem.MBObjectBase, TaleWorlds.CampaignSystem.Map.ILocatable< T >, TaleWorlds.CampaignSystem.Map.IMapPoint, TaleWorlds.CampaignSystem.ITrackableCampaignObject, TaleWorlds.CampaignSystem.Siege.ISiegeEventSide, TaleWorlds.CampaignSystem.Map.IMapEntity, and TaleWorlds.CampaignSystem.IRandomOwner.
Public Types | |
enum | SiegeState { OnTheWalls , InTheLordsHall , Invalid } |
Public Member Functions | |
void | SetWallSectionHitPointsRatioAtIndex (int index, float hitPointsRatio) |
Vec3 | GetLogicalPosition () |
void | SetGarrisonWagePaymentLimit (int limit) |
IEnumerable< PartyBase > | GetInvolvedPartiesForEventType (MapEvent.BattleTypes mapEventType=MapEvent.BattleTypes.Siege) |
PartyBase | GetNextInvolvedPartyForEventType (ref int partyIndex, MapEvent.BattleTypes mapEventType=MapEvent.BattleTypes.Siege) |
bool | HasInvolvedPartyForEventType (PartyBase party, MapEvent.BattleTypes mapEventType=MapEvent.BattleTypes.Siege) |
bool | IsUnderRebellionAttack () |
Settlement () | |
Initializes a new instance of the Settlement class. | |
Settlement (TextObject name, LocationComplex locationComplex, PartyTemplateObject pt) | |
Initializes a new instance of the Settlement class. | |
float | GetSettlementValueForEnemyHero (Hero hero) |
float | GetValue (Hero hero=null, bool countAlsoBoundedSettlements=true) |
override TextObject | GetName () |
This function is not same with get property of Name. It overrides the function in MBObjectBase class. It is used in encyclopedia etc. | |
float | GetSettlementValueForFaction (IFaction faction) |
override string | ToString () |
override void | Deserialize (MBObjectManager objectManager, XmlNode node) |
void | OnFinishLoadState () |
void | OnGameInitialized () |
void | OnGameCreated () |
void | OnSessionStart () |
void | OnPlayerEncounterFinish () |
Vec3 | GetPosition () |
float | GetTrackDistanceToMainAgent () |
bool | CheckTracked (BasicCharacterObject basicCharacter) |
void | SetNextSiegeState () |
void | ResetSiegeState () |
void | AddGarrisonParty (bool addInitialGarrison=false) |
void | SetSiegeStrategy (SiegeStrategy strategy) |
void | InitializeSiegeEventSide () |
void | OnTroopsKilledOnSide (int killCount) |
void | AddSiegeEngineMissile (SiegeEvent.SiegeEngineMissile missile) |
void | RemoveDeprecatedMissiles () |
void | GetAttackTarget (ISiegeEventSide siegeEventSide, SiegeEngineType siegeEngine, int siegeEngineSlot, out SiegeBombardTargets targetType, out int targetIndex) |
void | FinalizeSiegeEvent () |
void | OnPartyInteraction (MobileParty mobileParty) |
void | GetMountAndHarnessVisualIdsForPartyIcon (out string mountStringId, out string harnessStringId) |
void | SetSettlementComponent (SettlementComponent settlementComponent) |
Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase | |
MBObjectBase () | |
MBObjectBase (MBObjectBase other) | |
MBObjectBase (string stringId) | |
void | AfterInitialized () |
virtual void | AfterRegister () |
virtual void | Initialize () |
virtual void | Deserialize (MBObjectManager objectManager, XmlNode node) |
override int | GetHashCode () |
virtual TextObject | GetName () |
void | PreAfterLoadInternal () |
void | AfterLoadInternal () |
void | OnRegistered () |
void | OnUnregistered () |
void | OnGameInitialized () |
Vec3 | GetLogicalPosition () |
TextObject | GetName () |
Vec3 | GetPosition () |
float | GetTrackDistanceToMainAgent () |
bool | CheckTracked (BasicCharacterObject basicCharacter) |
IEnumerable< PartyBase > | GetInvolvedPartiesForEventType (MapEvent.BattleTypes mapEventType=MapEvent.BattleTypes.Siege) |
PartyBase | GetNextInvolvedPartyForEventType (ref int partyIndex, MapEvent.BattleTypes mapEventType=MapEvent.BattleTypes.Siege) |
bool | HasInvolvedPartyForEventType (PartyBase party, MapEvent.BattleTypes mapEventType=MapEvent.BattleTypes.Siege) |
void | OnTroopsKilledOnSide (int killCount) |
void | AddSiegeEngineMissile (SiegeEvent.SiegeEngineMissile missile) |
void | RemoveDeprecatedMissiles () |
void | SetSiegeStrategy (SiegeStrategy strategy) |
void | InitializeSiegeEventSide () |
void | GetAttackTarget (ISiegeEventSide siegeEventSide, SiegeEngineType siegeEngine, int siegeEngineSlot, out SiegeBombardTargets targetType, out int targetIndex) |
void | FinalizeSiegeEvent () |
bool | OnMapClick (bool followModifierUsed) |
void | OnHover () |
void | OnOpenEncyclopedia () |
bool | IsEnemyOf (IFaction faction) |
bool | IsAllyOf (IFaction faction) |
void | GetMountAndHarnessVisualIdsForPartyIcon (out string mountStringId, out string harnessStringId) |
void | OnPartyInteraction (MobileParty mobileParty) |
Static Public Member Functions | |
static Settlement | Find (string idString) |
static Settlement | FindFirst (Func< Settlement, bool > predicate) |
static IEnumerable< Settlement > | FindAll (Func< Settlement, bool > predicate) |
static LocatableSearchData< Settlement > | StartFindingLocatablesAroundPosition (Vec2 position, float radius) |
static Settlement | FindNextLocatable (ref LocatableSearchData< Settlement > data) |
Public Attributes | |
int | NumberOfLordPartiesTargeting |
int | CanBeClaimed |
float | ClaimValue |
Hero | ClaimedBy |
bool | HasVisited |
float | LastVisitTimeOfOwner |
CultureObject | Culture |
Town | Town |
Village | Village |
Hideout | Hideout |
MilitiaPartyComponent | MilitiaPartyComponent |
readonly ItemRoster | Stash |
Protected Member Functions | |
override void | AfterLoad () |
Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase | |
virtual void | OnBeforeLoad () |
virtual void | PreAfterLoad () |
virtual void | AfterLoad () |
TaleWorlds.CampaignSystem.Settlements.Settlement.Settlement | ( | ) |
TaleWorlds.CampaignSystem.Settlements.Settlement.Settlement | ( | TextObject | name, |
LocationComplex | locationComplex, | ||
PartyTemplateObject | pt | ||
) |
void TaleWorlds.CampaignSystem.Settlements.Settlement.SetWallSectionHitPointsRatioAtIndex | ( | int | index, |
float | hitPointsRatio | ||
) |
Vec3 TaleWorlds.CampaignSystem.Settlements.Settlement.GetLogicalPosition | ( | ) |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
void TaleWorlds.CampaignSystem.Settlements.Settlement.SetGarrisonWagePaymentLimit | ( | int | limit | ) |
IEnumerable< PartyBase > TaleWorlds.CampaignSystem.Settlements.Settlement.GetInvolvedPartiesForEventType | ( | MapEvent::BattleTypes | mapEventType = MapEvent::BattleTypes::Siege | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
PartyBase TaleWorlds.CampaignSystem.Settlements.Settlement.GetNextInvolvedPartyForEventType | ( | ref int | partyIndex, |
MapEvent::BattleTypes | mapEventType = MapEvent::BattleTypes::Siege |
||
) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
bool TaleWorlds.CampaignSystem.Settlements.Settlement.HasInvolvedPartyForEventType | ( | PartyBase | party, |
MapEvent::BattleTypes | mapEventType = MapEvent::BattleTypes::Siege |
||
) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
bool TaleWorlds.CampaignSystem.Settlements.Settlement.IsUnderRebellionAttack | ( | ) |
float TaleWorlds.CampaignSystem.Settlements.Settlement.GetSettlementValueForEnemyHero | ( | Hero | hero | ) |
float TaleWorlds.CampaignSystem.Settlements.Settlement.GetValue | ( | Hero | hero = null , |
bool | countAlsoBoundedSettlements = true |
||
) |
|
virtual |
Reimplemented from TaleWorlds.ObjectSystem.MBObjectBase.
float TaleWorlds.CampaignSystem.Settlements.Settlement.GetSettlementValueForFaction | ( | IFaction | faction | ) |
override string TaleWorlds.CampaignSystem.Settlements.Settlement.ToString | ( | ) |
|
virtual |
Reimplemented from TaleWorlds.ObjectSystem.MBObjectBase.
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnFinishLoadState | ( | ) |
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnGameInitialized | ( | ) |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnGameCreated | ( | ) |
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnSessionStart | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnPlayerEncounterFinish | ( | ) |
Vec3 TaleWorlds.CampaignSystem.Settlements.Settlement.GetPosition | ( | ) |
Implements TaleWorlds.Core.ITrackableBase.
float TaleWorlds.CampaignSystem.Settlements.Settlement.GetTrackDistanceToMainAgent | ( | ) |
Implements TaleWorlds.Core.ITrackableBase.
bool TaleWorlds.CampaignSystem.Settlements.Settlement.CheckTracked | ( | BasicCharacterObject | basicCharacter | ) |
Implements TaleWorlds.Core.ITrackableBase.
void TaleWorlds.CampaignSystem.Settlements.Settlement.SetNextSiegeState | ( | ) |
void TaleWorlds.CampaignSystem.Settlements.Settlement.ResetSiegeState | ( | ) |
void TaleWorlds.CampaignSystem.Settlements.Settlement.AddGarrisonParty | ( | bool | addInitialGarrison = false | ) |
|
protectedvirtual |
Reimplemented from TaleWorlds.ObjectSystem.MBObjectBase.
void TaleWorlds.CampaignSystem.Settlements.Settlement.SetSiegeStrategy | ( | SiegeStrategy | strategy | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.InitializeSiegeEventSide | ( | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnTroopsKilledOnSide | ( | int | killCount | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.AddSiegeEngineMissile | ( | SiegeEvent::SiegeEngineMissile | missile | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.RemoveDeprecatedMissiles | ( | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.GetAttackTarget | ( | ISiegeEventSide | siegeEventSide, |
SiegeEngineType | siegeEngine, | ||
int | siegeEngineSlot, | ||
out SiegeBombardTargets | targetType, | ||
out int | targetIndex | ||
) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.FinalizeSiegeEvent | ( | ) |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
void TaleWorlds.CampaignSystem.Settlements.Settlement.OnPartyInteraction | ( | MobileParty | mobileParty | ) |
Implements TaleWorlds.CampaignSystem.Map.IMapEntity.
void TaleWorlds.CampaignSystem.Settlements.Settlement.GetMountAndHarnessVisualIdsForPartyIcon | ( | out string | mountStringId, |
out string | harnessStringId | ||
) |
Implements TaleWorlds.CampaignSystem.Map.IMapEntity.
void TaleWorlds.CampaignSystem.Settlements.Settlement.SetSettlementComponent | ( | SettlementComponent | settlementComponent | ) |
int TaleWorlds.CampaignSystem.Settlements.Settlement.NumberOfLordPartiesTargeting |
int TaleWorlds.CampaignSystem.Settlements.Settlement.CanBeClaimed |
float TaleWorlds.CampaignSystem.Settlements.Settlement.ClaimValue |
Hero TaleWorlds.CampaignSystem.Settlements.Settlement.ClaimedBy |
bool TaleWorlds.CampaignSystem.Settlements.Settlement.HasVisited |
float TaleWorlds.CampaignSystem.Settlements.Settlement.LastVisitTimeOfOwner |
CultureObject TaleWorlds.CampaignSystem.Settlements.Settlement.Culture |
Town TaleWorlds.CampaignSystem.Settlements.Settlement.Town |
Village TaleWorlds.CampaignSystem.Settlements.Settlement.Village |
Hideout TaleWorlds.CampaignSystem.Settlements.Settlement.Hideout |
MilitiaPartyComponent TaleWorlds.CampaignSystem.Settlements.Settlement.MilitiaPartyComponent |
readonly ItemRoster TaleWorlds.CampaignSystem.Settlements.Settlement.Stash |
|
get |
|
get |
|
getset |
|
getset |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
|
getset |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
|
get |
|
getset |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
|
getset |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
|
get |
|
getset |
|
getset |
|
get |
Implements TaleWorlds.CampaignSystem.IRandomOwner.
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
|
get |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
|
get |
Implements TaleWorlds.CampaignSystem.Map.IMapPoint.
|
getset |
Implements TaleWorlds.CampaignSystem.Map.IMapEntity.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
get |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
|
get |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
|
get |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
|
get |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
|
get |
Implements TaleWorlds.CampaignSystem.Siege.ISiegeEventSide.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
staticget |
|
staticget |
|
staticget |
|
get |
|
get |
|
get |