Skip to content
Snippets Groups Projects
Commit d35e32ba authored by julienpillis's avatar julienpillis
Browse files

ajout commentaire

parent 0171892a
No related branches found
No related tags found
2 merge requests!4Multiple pixels agt,!2Agents
......@@ -6,22 +6,22 @@ import (
/*
* Utilisation de l'algorithme A* pour les déplacements
*
* //TODO: Peut-être gérer un passage par référence et non par copie
*
*/
type Node struct {
row, col, cost, heuristic int
}
func NewNode(row, col, cost, heuristic int) *Node{
return &Node{row, col ,cost , heuristic}
func NewNode(row, col, cost, heuristic int) *Node {
return &Node{row, col, cost, heuristic}
}
func (nd *Node) Row() int{
func (nd *Node) Row() int {
return nd.row
}
func (nd *Node) Col() int{
func (nd *Node) Col() int {
return nd.col
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment