(svn r20874) -Codechange: Make init_AyStar a method.

This commit is contained in:
alberth
2010-10-02 19:29:00 +00:00
parent a8af2c97c1
commit 9b21dfaeb0
3 changed files with 12 additions and 12 deletions

View File

@@ -139,6 +139,8 @@ struct AyStar {
AyStarNode neighbours[12];
byte num_neighbours;
void Init(Hash_HashProc hash, uint num_buckets);
/* These will contain the methods for manipulating the AyStar. Only
* Main() should be called externally */
void AddStartNode(AyStarNode *start_node, uint g);
@@ -159,11 +161,4 @@ struct AyStar {
Hash OpenListHash;
};
/* Initialize an AyStar. You should fill all appropriate fields before
* callling init_AyStar (see the declaration of AyStar for which fields are
* internal */
void init_AyStar(AyStar *aystar, Hash_HashProc hash, uint num_buckets);
#endif /* AYSTAR_H */