Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public void addTarg(TargLink inlink)
 {
     if (top == null)
     {
         top = inlink;
     }
     else
     {
         bottom.setNext(inlink);
     }
     bottom = inlink;
     length++;
 }
Exemplo n.º 3
0
 public void setNext(TargLink nexto)
 {
     next = nexto;
 }
Exemplo n.º 4
0
    public void addTarg(Vector3 invect)
    {
        TargLink temp = new TargLink(invect);

        addTarg(temp);
    }
Exemplo n.º 5
0
 public TargList()
 {
     top    = null;
     bottom = null;
     length = 0;
 }