Trying out member pointers to functions in isHit() for different barrier types. Not really any faster than using a switch() inside one big isHit(), but more elegant/maintainable