载入中...
搜索中...
未找到
eve::warship::CompartmentGrid结构体 参考
Rectangular compartment grid owned by a hull definition / entity. 更多...
#include <WarshipTypes.h>
Public 成员函数 | |
| int | cellCount () const noexcept |
| Total cell count (cols * rows * decks). | |
| int | indexOf (int deck, int row, int col) const noexcept |
| Flat index for (deck, row, col). | |
Public 属性 | |
| int | cols = 1 |
| int | rows = 1 |
| int | decks = 1 |
详细描述
Rectangular compartment grid owned by a hull definition / entity.
在文件 WarshipTypes.h 第 42 行定义.
成员函数说明
◆ cellCount()
|
inlinenoexcept |
Total cell count (cols * rows * decks).
在文件 WarshipTypes.h 第 48 行定义.
被这些函数引用 eve::warship::Warship::newWarship().
◆ indexOf()
|
inlinenoexcept |
Flat index for (deck, row, col).
- 返回
- Index in [0, cellCount), or -1 when out of range.
在文件 WarshipTypes.h 第 54 行定义.
类成员变量说明
◆ cols
| int eve::warship::CompartmentGrid::cols = 1 |
在文件 WarshipTypes.h 第 43 行定义.
被这些函数引用 cellCount() , 以及 indexOf().
◆ decks
| int eve::warship::CompartmentGrid::decks = 1 |
在文件 WarshipTypes.h 第 45 行定义.
被这些函数引用 cellCount(), indexOf() , 以及 eve::warship::Warship::newWarship().
◆ rows
| int eve::warship::CompartmentGrid::rows = 1 |
在文件 WarshipTypes.h 第 44 行定义.
被这些函数引用 cellCount() , 以及 indexOf().
该结构体的文档由以下文件生成:
- src/modules/warship/WarshipTypes.h