So I'm messing around with writing a mud. It'll never get done, but its a mechanism for me to get better at a few skills.
Anyway.
One of the things I need at a basic level is a routine that matches up the command input by the player with a method call in the engine. I suppose the most basic way of doing this is to use a massive switch statement, but I was wondering if anyone has a more elegant way of doing it?
Thanks,
Dub
|