载入中...
搜索中...
未找到
WarshipTypes.h
浏览该文件的文档.
Pluggable hull mobility (surface / sail / carrier / space / custom).
Definition WarshipTypes.h:160
virtual ~IWarshipMobility()=default
virtual void update(class WarshipEntity &ship, float dt)=0
Integrate motion for one simulation step.
virtual const char * name() const =0
Registry key matching WarshipDefinition::mobility.
Warship short-root entity: huge hull + rearrangeable compartments.
Definition WarshipTypes.h:188
Warship module entry (eve.Warship): hull/function catalogues, spawn, compartment remodel,...
Definition Warship.cpp:17
std::ostream & operator<<(std::ostream &stream, WarshipEventType type)
Definition WarshipTypes.h:145
constexpr const char * kCategoryWarship
Documented hull category conventions (free string; not an enum).
Definition WarshipTypes.h:30
constexpr const char * kMobilitySurface
Built-in mobility model names used by hull definitions.
Definition WarshipTypes.h:24
const char * warshipEventTypeName(WarshipEventType type)
Stable event type protocol name.
Definition WarshipSystem.cpp:131
@ Underpowered
@ LayoutChanged
@ Destroyed
std::string functionId
Registered compartment function id; empty means vacant.
Definition WarshipTypes.h:38
Compartment function catalogue entry.
Definition WarshipTypes.h:74
int weaponBayCount
Hardpoint / weapon-bay count contributed by this cell.
Definition WarshipTypes.h:86
std::string displayName
Definition WarshipTypes.h:76
std::vector< std::string > tags
Definition WarshipTypes.h:91
float powerProvide
Power contributed to the ship net (reactors / generators).
Definition WarshipTypes.h:80
Rectangular compartment grid owned by a hull definition / entity.
Definition WarshipTypes.h:42
int indexOf(int deck, int row, int col) const noexcept
Flat index for (deck, row, col).
Definition WarshipTypes.h:54
One default layout entry applied when a hull is spawned.
Definition WarshipTypes.h:61
Aggregated capabilities projected from the live compartment layout.
Definition WarshipTypes.h:115
bool underpowered
True when powerNet < 0 (underpowered; thrust is reduced).
Definition WarshipTypes.h:123
Hull template registered through Warship::registerHullsFromJson.
Definition WarshipTypes.h:95
std::string category
Convention: warship / sailship / carrier / starship / custom.
Definition WarshipTypes.h:98
float length
Hull length in world units (large relative to typical vehicles).
Definition WarshipTypes.h:102
std::vector< LayoutSeed > defaultLayout
Definition WarshipTypes.h:110
Cached projection of Layout through the function catalogue.
Definition WarshipTypes.h:246
WarshipCapabilities values
Definition WarshipTypes.h:247
Borrowed definition pointer (registry owns the template).
Definition WarshipTypes.h:203
Physical envelope (copied from definition at spawn).
Definition WarshipTypes.h:233
Stable instance id / template id / faction / category.
Definition WarshipTypes.h:195
Live compartment occupancy; authoritative owner of layout cells.
Definition WarshipTypes.h:240
std::vector< CompartmentCell > cells
Definition WarshipTypes.h:242
2D kinematic motion (world XY, heading in degrees).
Definition WarshipTypes.h:214