//Constructor //vLoc is points location //cIndex is the index in the world grid //pointState is the state of the point ( open spot, no land, obstacle) public Point(Vector3 vLoc, Index cIndex, pointState pointState, Point parent = null) { state = pointState; controlSt = controlState.grey; redInfluence = 0; blueInfluence = 0; loc = vLoc; parentPoint = parent; index = cIndex; //initialize these to zero for now f = 0; g = 0; h = 0; }
public void setState(controlState s) { currentState = s; print("changing state: "+currentState); }
// Use this for initialization void Start() { currentState = controlState.idle; }