Documentation ¶
Index ¶
- Variables
- type HColumn
- type HMap
- func (hm *HMap) AStar(start, goal geom.Vec3) ([]geom.Vec3, bool)
- func (hm *HMap) At(x, z int) HColumn
- func (hm *HMap) BuildStaticNeighbours()
- func (hm *HMap) CastRay(src, dst geom.Vec3, max float64) bool
- func (hm *HMap) CompileBytes() []byte
- func (hm *HMap) Deserialize(data []byte) error
- func (hm *HMap) GetReachableNeighbours(x, y, z, agility int, allowRun bool) []geom.Vec3
- func (hm *HMap) Serialize() ([]byte, error)
- func (hm *HMap) UpdateProximityCosts(pos geom.Vec3, radius float64)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GoalPosition = geom.Vec3{ X: logic.MapWidth / 2, Y: 1, Z: logic.MapDepth * 0.05, } StartPlayerPosition = geom.Vec3{ X: logic.MapWidth / 2, Y: 1, Z: logic.MapDepth * 0.1, } StartAgentPosition = geom.Vec3{ X: logic.MapWidth / 2, Y: 1, Z: logic.MapDepth * 0.9, } )
Positions
View Source
var ( LevelsTime = []uint64{ 0: logic.TPS * 60 * 5, 1: logic.TPS * 60 * 5, 2: logic.TPS * 60 * 5, 3: logic.TPS * 60 * 5, } HideSpotsByLevel = [][]geom.Vec3{ 0: { { X: 108, Y: 2, Z: 176, }, { X: 147, Y: 2, Z: 81, }, { X: 103, Y: 10, Z: 156, }, { X: 103, Y: 10, Z: 149, }, { X: 152, Y: 10, Z: 156, }, { X: 152, Y: 10, Z: 149, }, { X: 152, Y: 10, Z: 108, }, { X: 152, Y: 10, Z: 101, }, { X: 103, Y: 10, Z: 101, }, { X: 103, Y: 10, Z: 108, }, }, 1: { { X: 108, Y: 2, Z: 176, }, { X: 147, Y: 2, Z: 81, }, { X: 103, Y: 10, Z: 156, }, { X: 103, Y: 10, Z: 149, }, { X: 152, Y: 10, Z: 156, }, { X: 152, Y: 10, Z: 149, }, { X: 152, Y: 10, Z: 108, }, { X: 152, Y: 10, Z: 101, }, { X: 103, Y: 10, Z: 101, }, { X: 103, Y: 10, Z: 108, }, }, } InfoSpotsByLevel = [][]geom.Vec3{ 0: { { X: 128, Y: 38, Z: 128, }, { X: 127, Y: 38, Z: 129, }, { X: 134, Y: 11, Z: 157, }, { X: 121, Y: 11, Z: 157, }, { X: 121, Y: 11, Z: 100, }, { X: 134, Y: 11, Z: 100, }, }, 1: { { X: 128, Y: 38, Z: 128, }, { X: 127, Y: 38, Z: 129, }, { X: 83, Y: 33, Z: 173, }, { X: 173, Y: 7, Z: 173, }, { X: 173, Y: 33, Z: 83, }, { X: 83, Y: 7, Z: 83, }, }, 2: nil, 3: nil, } )
Functions ¶
This section is empty.
Types ¶
type HMap ¶
func (*HMap) BuildStaticNeighbours ¶
func (hm *HMap) BuildStaticNeighbours()
func (*HMap) CompileBytes ¶
func (*HMap) Deserialize ¶
func (*HMap) GetReachableNeighbours ¶
Click to show internal directories.
Click to hide internal directories.