Original Post
The title might not make sense, but here's what I mean. Let's say you want to shout, talk or whisper in your game. Shout will display the text to many in a large area, talking will do it in a slightly smaller area, and whispering does it in an even smaller area. Would it be better to have 3 different function.. shout(){ //perform } talk(){ //perform } whisper(){ //perform } like so, or have 1 function with a parameter that is used to tell which command we're using and the parsing is done inside the function like.. talk(int type){ //if type = 1, whisper //if type = 2, talk //if type = 3, shout } Thanks