public void LinkReciprocally(BeastLink from, BeastLink to) { from.reciprocate(to).set(to.beast); to.set(from.get()); }
public BeastLink reciprocate(BeastLink other) { string direction = null; switch (other.getLastDirection()) { case "up": direction = "down"; break; case "down": direction = "up"; break; case "left": direction = "right"; break; case "right": direction = "left"; break; case "inner": direction = "inner"; break; } return new BeastLink(this.get(), new string[]{direction}); }