Beispiel #1
0
        public void sposta(Point x, Color cFront, Color cNorm)
        {
            front.setColor(cNorm);
            rear.setPoint(x);
            rear.setColor(cFront);

            rear  = rear.getPrep();
            front = front.getPrep();
        }
Beispiel #2
0
        public bool isLooping(System.Windows.Forms.PictureBox x)
        {
            nodo pa = front.getNxtp();

            while (pa != front)
            {
                if (pa.getInfo().Location == x.Location)
                {
                    return(true);
                }

                pa = pa.getNxtp();
            }
            return(false);
        }
Beispiel #3
0
        public void push(System.Windows.Forms.PictureBox val)
        {
            nodo nuovo = new nodo(ref val, null, null);

            if (mpty())
            {
                front = rear = nuovo;
            }
            else
            {
                rear.setNxtp(nuovo);
                nuovo.setPrep(rear);
                rear = nuovo;
            }
            rear.setNxtp(front);
            front.setPrep(rear);
        }
Beispiel #4
0
 public coda()
 {
     front = null;
     rear  = null;
 }
Beispiel #5
0
 public void setPrep(nodo prep)
 {
     this.prep = prep;
 }
Beispiel #6
0
 public void setNxtp(nodo nxtp)
 {
     this.nxtp = nxtp;
 }
Beispiel #7
0
 public nodo(ref System.Windows.Forms.PictureBox info, nodo nxtp, nodo prep)
 {
     this.info = info;
     this.nxtp = nxtp;
     this.prep = prep;
 }
Beispiel #8
0
 public nodo()
 {
     nxtp = prep = null;
 }