private bool rightColliding(PhysicalObject listobject, PhysicalObject player) { return(player.getleft() < listobject.getright() && player.getleft() > listobject.getleft()); }
private bool isPlayerBetweenObjectY(PhysicalObject listobject, Player player) { return(bottomTopColliding(player, listobject) && bottomTopColliding(listobject, player)); }
private bool bottomTopColliding(PhysicalObject listobject, PhysicalObject player) { return(player.getbottom() > listobject.gettop()); }
private bool isPlayerBetweenObjectX(PhysicalObject listobject, Player player) { return(leftColliding(listobject, player) || rightColliding(listobject, player)); }