What I would do is have a wall on one end and a line of units on the other end with the wall being shorter than the line of units. This is just a breif overveiw of one idea of how to do it.
CODE
*
*
*
* |
* |
* |
* |
* |
* |
* |
* |
*
*
*
Whenever you hit the ball with your unit depending on timing or whatever you would basicly decide and angle to throw the ball. You would have a counter or something with differant values representing differant angles.
When the ball hits the wall you would center a long horizontal location on it. Then center another on the unit wall on the other side to use simple gridding to select a unit that is a specific angle to your spot on the wall.
As far as making the unit go towards the wall at preset angles you could do the same thing. If there is alot of space behind the wall then you can basicly put a set of units behind the wall. You can space them out more and put them alot futher so the angle doesn't vary when your dude hits the ball from differant distances from the wall.
An example of this unit wall would be like this (zoomed out more than the previous)
CODE
*
*
*
*
* *
* |
* |
* |
* *
*
*
*
*
If you wanted to do it with no space behind the wall then you could have units on the wall itself to use for your grid. But then you would have to adjust the angle according to how far your unit was from that wall.
For example if you wanted to hit the ball at a 45 degree angle NE
If you were right next to the wall then you would select a grid unit on the wall alot closer to your horizontal parallel than if you were standing further away from it.
PS. If you have lots of wall and want to make it real real high teck then you could mimic my corrdinates map and make a path that bounces with custom walls. It would be like basicly having the entire playing zone mathmatically mapped out on a corrdinate plane where locations could move to. But walls could be anywhere, even placed during the game itself. That would take alot of work and would be one hell of a show off map even without a game attached.