[DM-dev] Make it more modular
Brought to you by:
acdalton,
henningsen
From: Selena W. <se...@al...> - 2001-03-31 15:52:52
|
Hey Peter, just got your Dungeonmaker beta release notification. It makes nice dungeons alright, but your code is all in two files! The main() program is together with the DungeonMaker code! Do you expect people to rip out the main()-function by hand before they can use your code? So, since you want suggestions, I suggest that you take the main() function out into its own separate file. Also, in your interface: In the DungeonMaker constructor, you call several variables that are read in from the rooms-file. Isn't that redundant? Shouldn't the constructor read the rooms-file itself, so you could get rid of the variables in the constructor? Makes it easier to call, and all... Just a thought. Hope all is well with you, Selena |