One authoritative directed edge fact between two adjacent cells. 更多...
#include <TacticsTypes.h>
Public 属性 | |
| bool | passable = true |
| Whether travel is allowed in this exact direction. | |
| int | extraCost = 0 |
| Additional cost charged only when crossing this direction. | |
| std::vector< std::string > | tags |
Stable tags for game rules (for example door, one_way). | |
详细描述
One authoritative directed edge fact between two adjacent cells.
Edges exist in addition to cells, not instead of them: a cell keeps the cost of entering it from anywhere, while an edge refines one specific direction. That separation is what lets a board express a one-way drop, a door that only opens one way, or a diagonal that costs more than its orthogonal neighbours, without duplicating cell facts or inventing a second board.
在文件 TacticsTypes.h 第 115 行定义.
类成员变量说明
◆ extraCost
| int eve::tactics::EdgeState::extraCost = 0 |
Additional cost charged only when crossing this direction.
在文件 TacticsTypes.h 第 119 行定义.
◆ passable
| bool eve::tactics::EdgeState::passable = true |
Whether travel is allowed in this exact direction.
在文件 TacticsTypes.h 第 117 行定义.
◆ tags
| std::vector<std::string> eve::tactics::EdgeState::tags |
Stable tags for game rules (for example door, one_way).
在文件 TacticsTypes.h 第 121 行定义.
该结构体的文档由以下文件生成:
- src/modules/tactics/TacticsTypes.h