public void sposta(Point x, Color cFront, Color cNorm) { front.setColor(cNorm); rear.setPoint(x); rear.setColor(cFront); rear = rear.getPrep(); front = front.getPrep(); }
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); }
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); }
public coda() { front = null; rear = null; }
public void setPrep(nodo prep) { this.prep = prep; }
public void setNxtp(nodo nxtp) { this.nxtp = nxtp; }
public nodo(ref System.Windows.Forms.PictureBox info, nodo nxtp, nodo prep) { this.info = info; this.nxtp = nxtp; this.prep = prep; }
public nodo() { nxtp = prep = null; }