Hi,
I have 6 different functions, that each draw a different version of something, depending on what type it is. Right now I have a switch statement, jsut calling the right funtion, and I was wondering if there was a way to just call eg. draw[type](); or something along those lines to draw it.
Thanks
I have 6 different functions, that each draw a different version of something, depending on what type it is. Right now I have a switch statement, jsut calling the right funtion, and I was wondering if there was a way to just call eg. draw[type](); or something along those lines to draw it.
Thanks