载入中...
搜索中...
未找到
eve::hexmap::HexUnitTuning结构体 参考

Per-unit tuning shared by every unit of a registry. 更多...

#include <HexUnits.h>

Public 成员函数

HexMoveRules moveRules () const noexcept
 The pathfinding rules implied by this tuning.
 

Public 属性

std::int32_t speed = 24
 Movement points per turn, matching HexMoveRules::speed.
 
std::int32_t visionRange = 3
 Vision radius in cells, matching HexMoveRules::visionRange.
 
float travelSpeed = 4.f
 Travel speed in path segments per second.
 
float rotationSpeed = 180.f
 Turn rate in degrees per second while travelling.
 

详细描述

Per-unit tuning shared by every unit of a registry.

在文件 HexUnits.h 第 17 行定义.

成员函数说明

◆ moveRules()

HexMoveRules eve::hexmap::HexUnitTuning::moveRules ( ) const
inlinenoexcept

The pathfinding rules implied by this tuning.

在文件 HexUnits.h 第 28 行定义.

引用了 speed , 以及 visionRange.

类成员变量说明

◆ rotationSpeed

float eve::hexmap::HexUnitTuning::rotationSpeed = 180.f

Turn rate in degrees per second while travelling.

在文件 HexUnits.h 第 25 行定义.

被这些函数引用 eve::hexmap::HexUnitRegistry::advance().

◆ speed

std::int32_t eve::hexmap::HexUnitTuning::speed = 24

Movement points per turn, matching HexMoveRules::speed.

在文件 HexUnits.h 第 19 行定义.

被这些函数引用 moveRules().

◆ travelSpeed

float eve::hexmap::HexUnitTuning::travelSpeed = 4.f

Travel speed in path segments per second.

在文件 HexUnits.h 第 23 行定义.

被这些函数引用 eve::hexmap::HexUnitRegistry::advance().

◆ visionRange


该结构体的文档由以下文件生成: