// return false to allow player to pass through this object, return true for a real collision public bool PlayerCollisionEffect(Keys keyPressed, Direction intendedDirection) { if (intendedDirection == keyPressed.keyToDirection()) return false; else return true; }