M&B: Bannerlord 1.3.4
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.Naval.Ship Class Referencesealed

Inherits TaleWorlds.Core.IShipOrigin, and TaleWorlds.CampaignSystem.IRandomOwner.

Public Member Functions

void ChangeFigurehead (Figurehead figurehead)
 
ShipUpgradePiece GetPieceAtSlot (string slotTag)
 
void SetPieceAtSlot (string slotTag, ShipUpgradePiece upgradePiece)
 
bool HasSlot (string slotTag)
 
void SetName (TextObject name)
 
 Ship (ShipHull shipHull)
 
float GetCampaignSpeed ()
 
void AddToAvailablePieces (ShipUpgradePiece upgradePiece)
 
void RemoveFromAvailablePieces (ShipUpgradePiece upgradePiece)
 
MBList< SiegeEngineTypeGetSiegeEngines ()
 
void ResetReservedUpgradePieces ()
 
void UpdateVersionNo ()
 
float GetCombatFactor ()
 
void OnShipDamaged (float rawDamage, IShipOrigin rammingShip, out float modifiedDamage)
 
List< ShipVisualSlotInfoGetShipVisualSlotInfos ()
 
List< ShipSlotAndPieceNameGetShipSlotAndPieceNames ()
 

Public Attributes

readonly ShipHull ShipHull
 

Properties

Figurehead Figurehead [get]
 
bool IsInvulnerable [get, set]
 
bool IsTradeable = true [get, set]
 
bool IsUsedByQuest [get, set]
 
int RandomValue = MBRandom.RandomInt(1, int.MaxValue) [get]
 
MBReadOnlyList< ShipUpgradePieceReservedUpgradePieces [get]
 
TextObject Name [get]
 
uint VersionNo [get]
 
PartyBase Owner [get, set]
 
float HitPoints [get, set]
 
float MaxHitPoints [get]
 
float MaxFireHitPoints [get]
 
float SailHitPoints [get, set]
 
int TotalCrewCapacity [get]
 
float MaxSailHitPoints [get]
 
int SeaWorthiness [get]
 
float FlagshipScore [get]
 
int MainDeckCrewCapacity [get]
 
float InventoryCapacity [get]
 
int SkeletalCrewCapacity [get]
 
float CrewCapacityBonusFactor [get]
 
float ShipWeightFactor [get]
 
float ForwardDragFactor [get]
 
float CrewShieldHitPointsFactor [get]
 
int AdditionalAmmo [get]
 
float MaxOarPowerFactor [get]
 
float MaxOarForceFactor [get]
 
float SailForceFactor [get]
 
float CrewMeleeDamageFactor [get]
 
int AdditionalArcherQuivers [get]
 
int AdditionalThrowingWeaponStack [get]
 
float SailRotationSpeedFactor [get]
 
float FurlUnfurlSpeedFactor [get]
 
float RudderSurfaceAreaFactor [get]
 
float MaxRudderForceFactor [get]
 
bool CanEquipFigurehead [get]
 
float CampaignSpeedBonusFactor [get]
 
- Properties inherited from TaleWorlds.Core.IShipOrigin
- Properties inherited from TaleWorlds.CampaignSystem.IRandomOwner

Constructor & Destructor Documentation

◆ Ship()

TaleWorlds.CampaignSystem.Naval.Ship.Ship ( ShipHull shipHull)

Member Function Documentation

◆ ChangeFigurehead()

void TaleWorlds.CampaignSystem.Naval.Ship.ChangeFigurehead ( Figurehead figurehead)

◆ GetPieceAtSlot()

ShipUpgradePiece TaleWorlds.CampaignSystem.Naval.Ship.GetPieceAtSlot ( string slotTag)

◆ SetPieceAtSlot()

void TaleWorlds.CampaignSystem.Naval.Ship.SetPieceAtSlot ( string slotTag,
ShipUpgradePiece upgradePiece )

◆ HasSlot()

bool TaleWorlds.CampaignSystem.Naval.Ship.HasSlot ( string slotTag)

◆ SetName()

void TaleWorlds.CampaignSystem.Naval.Ship.SetName ( TextObject name)

◆ GetCampaignSpeed()

float TaleWorlds.CampaignSystem.Naval.Ship.GetCampaignSpeed ( )

◆ AddToAvailablePieces()

void TaleWorlds.CampaignSystem.Naval.Ship.AddToAvailablePieces ( ShipUpgradePiece upgradePiece)

◆ RemoveFromAvailablePieces()

void TaleWorlds.CampaignSystem.Naval.Ship.RemoveFromAvailablePieces ( ShipUpgradePiece upgradePiece)

◆ GetSiegeEngines()

MBList< SiegeEngineType > TaleWorlds.CampaignSystem.Naval.Ship.GetSiegeEngines ( )

◆ ResetReservedUpgradePieces()

void TaleWorlds.CampaignSystem.Naval.Ship.ResetReservedUpgradePieces ( )

◆ UpdateVersionNo()

void TaleWorlds.CampaignSystem.Naval.Ship.UpdateVersionNo ( )

◆ GetCombatFactor()

float TaleWorlds.CampaignSystem.Naval.Ship.GetCombatFactor ( )

◆ OnShipDamaged()

void TaleWorlds.CampaignSystem.Naval.Ship.OnShipDamaged ( float rawDamage,
IShipOrigin rammingShip,
out float modifiedDamage )

◆ GetShipVisualSlotInfos()

List< ShipVisualSlotInfo > TaleWorlds.CampaignSystem.Naval.Ship.GetShipVisualSlotInfos ( )

◆ GetShipSlotAndPieceNames()

List< ShipSlotAndPieceName > TaleWorlds.CampaignSystem.Naval.Ship.GetShipSlotAndPieceNames ( )

Member Data Documentation

◆ ShipHull

readonly ShipHull TaleWorlds.CampaignSystem.Naval.Ship.ShipHull

Property Documentation

◆ Figurehead

Figurehead TaleWorlds.CampaignSystem.Naval.Ship.Figurehead
get

◆ IsInvulnerable

bool TaleWorlds.CampaignSystem.Naval.Ship.IsInvulnerable
getset

◆ IsTradeable

bool TaleWorlds.CampaignSystem.Naval.Ship.IsTradeable = true
getset

◆ IsUsedByQuest

bool TaleWorlds.CampaignSystem.Naval.Ship.IsUsedByQuest
getset

◆ RandomValue

int TaleWorlds.CampaignSystem.Naval.Ship.RandomValue = MBRandom.RandomInt(1, int.MaxValue)
get

◆ ReservedUpgradePieces

MBReadOnlyList<ShipUpgradePiece> TaleWorlds.CampaignSystem.Naval.Ship.ReservedUpgradePieces
get

◆ Name

TextObject TaleWorlds.CampaignSystem.Naval.Ship.Name
get

◆ VersionNo

uint TaleWorlds.CampaignSystem.Naval.Ship.VersionNo
get

◆ Owner

PartyBase TaleWorlds.CampaignSystem.Naval.Ship.Owner
getset

◆ HitPoints

float TaleWorlds.CampaignSystem.Naval.Ship.HitPoints
getset

◆ MaxHitPoints

float TaleWorlds.CampaignSystem.Naval.Ship.MaxHitPoints
get

◆ MaxFireHitPoints

float TaleWorlds.CampaignSystem.Naval.Ship.MaxFireHitPoints
get

◆ SailHitPoints

float TaleWorlds.CampaignSystem.Naval.Ship.SailHitPoints
getset

◆ TotalCrewCapacity

int TaleWorlds.CampaignSystem.Naval.Ship.TotalCrewCapacity
get

◆ MaxSailHitPoints

float TaleWorlds.CampaignSystem.Naval.Ship.MaxSailHitPoints
get

◆ SeaWorthiness

int TaleWorlds.CampaignSystem.Naval.Ship.SeaWorthiness
get

◆ FlagshipScore

float TaleWorlds.CampaignSystem.Naval.Ship.FlagshipScore
get

◆ MainDeckCrewCapacity

int TaleWorlds.CampaignSystem.Naval.Ship.MainDeckCrewCapacity
get

◆ InventoryCapacity

float TaleWorlds.CampaignSystem.Naval.Ship.InventoryCapacity
get

◆ SkeletalCrewCapacity

int TaleWorlds.CampaignSystem.Naval.Ship.SkeletalCrewCapacity
get

◆ CrewCapacityBonusFactor

float TaleWorlds.CampaignSystem.Naval.Ship.CrewCapacityBonusFactor
get

◆ ShipWeightFactor

float TaleWorlds.CampaignSystem.Naval.Ship.ShipWeightFactor
get

◆ ForwardDragFactor

float TaleWorlds.CampaignSystem.Naval.Ship.ForwardDragFactor
get

◆ CrewShieldHitPointsFactor

float TaleWorlds.CampaignSystem.Naval.Ship.CrewShieldHitPointsFactor
get

◆ AdditionalAmmo

int TaleWorlds.CampaignSystem.Naval.Ship.AdditionalAmmo
get

◆ MaxOarPowerFactor

float TaleWorlds.CampaignSystem.Naval.Ship.MaxOarPowerFactor
get

◆ MaxOarForceFactor

float TaleWorlds.CampaignSystem.Naval.Ship.MaxOarForceFactor
get

◆ SailForceFactor

float TaleWorlds.CampaignSystem.Naval.Ship.SailForceFactor
get

◆ CrewMeleeDamageFactor

float TaleWorlds.CampaignSystem.Naval.Ship.CrewMeleeDamageFactor
get

◆ AdditionalArcherQuivers

int TaleWorlds.CampaignSystem.Naval.Ship.AdditionalArcherQuivers
get

◆ AdditionalThrowingWeaponStack

int TaleWorlds.CampaignSystem.Naval.Ship.AdditionalThrowingWeaponStack
get

◆ SailRotationSpeedFactor

float TaleWorlds.CampaignSystem.Naval.Ship.SailRotationSpeedFactor
get

◆ FurlUnfurlSpeedFactor

float TaleWorlds.CampaignSystem.Naval.Ship.FurlUnfurlSpeedFactor
get

◆ RudderSurfaceAreaFactor

float TaleWorlds.CampaignSystem.Naval.Ship.RudderSurfaceAreaFactor
get

◆ MaxRudderForceFactor

float TaleWorlds.CampaignSystem.Naval.Ship.MaxRudderForceFactor
get

◆ CanEquipFigurehead

bool TaleWorlds.CampaignSystem.Naval.Ship.CanEquipFigurehead
get

◆ CampaignSpeedBonusFactor

float TaleWorlds.CampaignSystem.Naval.Ship.CampaignSpeedBonusFactor
get