Exemple #1
0
 private bool rightColliding(PhysicalObject listobject, PhysicalObject player)
 {
     return(player.getleft() < listobject.getright() && player.getleft() > listobject.getleft());
 }
Exemple #2
0
 private bool isPlayerBetweenObjectY(PhysicalObject listobject, Player player)
 {
     return(bottomTopColliding(player, listobject) && bottomTopColliding(listobject, player));
 }
Exemple #3
0
 private bool bottomTopColliding(PhysicalObject listobject, PhysicalObject player)
 {
     return(player.getbottom() > listobject.gettop());
 }
Exemple #4
0
 private bool isPlayerBetweenObjectX(PhysicalObject listobject, Player player)
 {
     return(leftColliding(listobject, player) || rightColliding(listobject, player));
 }