All pastes #924115 Raw Edit

link code

public text v1 · immutable
·published 2008-03-01 02:55 UTC
rendered paste body
	void linkNorth(point* N) {
		north = N;
		if (N != NULL) N->setSouth(this);
	}
	void linkEast(point* E) {
		east = E;
		if (E != NULL) E->setWest(this);
	}
	void linkSouth(point* S) {
		south = S;
		if (S != NULL) S->setNorth(this);
	}
	void linkWest(point* W) {
		west = W;
		if (W != NULL) W->setEast(this);
	}