package edu.calpoly.csc480.Corral.Agent.Util;

import java.awt.*;

public class Node {
	static final public int moveType = 0, turnType = 1;

	public int type;
	public short pathCost;
	public State state, parentState;

	public Node(Node parent) {
		this.state = new State();

		if (parent != null) {
			this.parentState = parent.state;
			this.pathCost    = parent.pathCost;
		}
		else {
			this.parentState = this.state;
			this.pathCost    = 0;
		}
	}
/*
	public String toString() {
		return "Node[" +
		 "type=" + (type == moveType ? "move" : "turn") + "," +
		 "cost=" + pathCost + ",\n " +
		 "state=" + state + ",\n " +
		 "parentState=" + parentState +
		 "]\n";
	}
*/}