Skip to content
Snippets Groups Projects
Commit db30e3c3 authored by Susan Yuen's avatar Susan Yuen
Browse files

Added comment on where to put animating function

parent 773ceeb5
No related branches found
No related tags found
No related merge requests found
......@@ -127,12 +127,16 @@ namespace Controller
private static void updateUnitPosition(Vector2 position, LinkedList<Node> path)
{
Unit unit = GameState.getSelectedUnit();
// moves the unit to each node in the path (one node at a time)
foreach(Node node in path)
{
unit.setPosition(node.getPositionX(), node.getPositionY());
}
// TODO: CALL ANIMATION FUNCTION HERE TO ANIMATE UNIT
// Use path to determine which nodes to move to
//foreach (Node node in path)
//{
// unit.setPosition(node.getPositionX(), node.getPositionY());
//}
// moves the unit to end node
unit.setPosition(path.Last().getPositionX(), path.Last().getPositionY());
}
// returns a menu button that was clicked; if no menu button was clicked, returns null
......
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