private void move(Point p)
	{
		lastX=x;
		lastY=y;
		x=p.x;
		y=p.y;
		//AffineTransform af=new AffineTransform();
		//af.setToTranslation(point.x-lastPoint.x,point.y-lastPoint.y);
		//mask.transform(af);
		EntityEvent event=new EntityEvent(this);
		for(EntityListener listener:listeners)
			listener.entityMove(event);
	}