deliverable versio
This commit is contained in:
parent
e9f6751355
commit
1165c7746f
@ -234,6 +234,11 @@ public class Node89978445
|
|||||||
* @brief
|
* @brief
|
||||||
* Static version of move validation to use outside of the class
|
* Static version of move validation to use outside of the class
|
||||||
* Check if the requested move for a node is valid
|
* Check if the requested move for a node is valid
|
||||||
|
* @param node The node of interest
|
||||||
|
* @param move The move to check
|
||||||
|
* @return The hypothetical new position of pacman
|
||||||
|
* @arg The resulting position in maze if the move is valid.
|
||||||
|
* @arg If it is not valid return Globals.POSITION_FALSE
|
||||||
*/
|
*/
|
||||||
public static int[] pacmanValidMove (Node89978445 node, int move) {
|
public static int[] pacmanValidMove (Node89978445 node, int move) {
|
||||||
return node.pacmanValidMove (node.nodeXY, move);
|
return node.pacmanValidMove (node.nodeXY, move);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user