Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAstarPoint ¶
func NewAstarPoint(p *_Point, father *_AstarPoint, end *_AstarPoint) (ap *_AstarPoint)
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map 保存地图的基本信息
func (*Map) PrintMap ¶
func (pointMap *Map) PrintMap(path *SearchRoad)
type SearchRoad ¶
type SearchRoad struct { TheRoad []*_AstarPoint // contains filtered or unexported fields }
func NewSearchRoad ¶
func NewSearchRoad(startx, starty, endx, endy int, m *Map) *SearchRoad
func (*SearchRoad) FindoutRoad ¶
func (sr *SearchRoad) FindoutRoad() bool
Click to show internal directories.
Click to hide internal directories.