public Vector3[] getArray() { Vector3[] arry = new Vector3[length]; TargLink cur = top; for (int i = 0; i < length; i++) { arry[i] = cur.getData(); cur = cur.getNext(); } return(arry); }
public void addTarg(TargLink inlink) { if (top == null) { top = inlink; } else { bottom.setNext(inlink); } bottom = inlink; length++; }
public void setNext(TargLink nexto) { next = nexto; }
public void addTarg(Vector3 invect) { TargLink temp = new TargLink(invect); addTarg(temp); }
public TargList() { top = null; bottom = null; length = 0; }