package edu.mit.roborace;

import java.util.Vector;

public class MobileBoardElement extends BoardElement {
    public void bePushed(Card c) { 
	c.init(direction);
	pushMunge(c);
	doCard(c);
    }

    public void doCard(Card c) {
	while(!c.empty())
	    curSquare.moveFrom(this, c);
	curSquare.stopOn(this, c);
    }

    public void pushMunge(Card c) { }

    public boolean specialHandling(String be){
	return false;
    }

    // *** Other stuff that needs to be implemented here...  At the
    // end of a phase curSquare.boardElementsMove(self, false) needs
    // to be called.  This may return false, in which case this MBE
    // should request to be deffered to see if other MBEs (like other
    // robots) get out of your way.  When called again,
    // curSquare.boardElementsMove(self, true) should be called.
}



