Meja lompat penanganan tabrakan 2D

void handle_mario_bumpable(object1 mario, object2 bumpable) { ... }void handle_mario_turtle(object1 mario, object2 turtle) { ... }void handle_mario_wall(object1 mario, object2 wall) { ... }...void handle_collision(object1 general_object, object2 general_object){	if object1.type == mario and object2.type == bumpable then handle_mario_bumpable(object1, object2)else 	if object1.type == mario and object2.type == turtle then handle_mario_turtle(object1, object2)....}
GaL