Re: [Javamud-developers] Alternate directory structure
Status: Beta
Brought to you by:
u_davis
From: Istvan D. <ist...@F-...> - 2003-06-23 09:36:08
|
Hi, Here is my draft with filled with the classes already implemented please comment istvan On Tuesday 17 June 2003 18:39, David, Istvan wrote: > Let's see: > > The only major problem with this would be that the mudlib API has one > function: clone_object(String filename). > This doesn't tell the type of the object, so in the current implementation > the driver tries in three places: object/; mob/; room/ and tries to load > the first class that matches the filename relative to the above paths. If > you want this to work, i have to make the driver recognize the type of the > class that's being loaded and then cast it to the apropiate type (in fact > that should be the way to do it anyway, so i'll try to do that next, when i > have the time). > Anyway, all the classes MUST be under javamud/ directory, since the main > package if the game is "javamud.*". > Personally i like the previous structure better (the existing one), since > the inheritance and package structure is obvious. > > regards > istvan > > > On Monday 16 June 2003 12:35, Jonathan Romulo Geronimo wrote: > > Alternate directory structure: > ------------------------------ > > /commands > Contains all user commands. > > /daemons > Contains all the daemons. > > /domain > This is the main standard library which comes with the mud. > - /rooms > Contains the standard rooms like the death room, the wizard hall and so > on. > > /logs > Contains all logfiles. > > /std > Contains the basic classes ( eg. basic.java, living.java, mob.java ) which > all other objects extend. > - /armor > Contains pre-made armor to be used or extended by wizards. > > - /clans > Contains the clan classes. > > - /guilds > Contains the guild classes. > > - /item > Contains pre-made items (eg. torches, backpack ) to be used or extended > by wizards. > > - /quests > Containst the quest classes. > > - /races > Contains the character race classes. > - /races > Contains the character race classes. > > - /spells > Contains the spell classes. > > - /weapon > Contains pre-made weapons to be used or extended by wizards. > > /system > Contains system classes like driver.java and serverThread.java. > > /utils > Contains utility classes. > > /wizards > The home directories of all wizards are here. These directories will be > where the files they create are stored in. > - /davis > - /easta > > > Hello, > > > > Attached is a text file detailing an alternate > > directory structure for the mud's source code. > > > > Do comment :). > > > > > > Jonathan > > > > ===== > > And the bleak shalt inherith the mirth. > > > > __________________________________ > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > http://sbc.yahoo.com -- ____________ \ ______// \ \\____ Istvan David tel : +358 9 2520 5359 \ __// Software Engineer fax : +358 9 2520 5001 \ \\ \ // F-Secure Corporation http://www.F-Secure.com/ \/ F-Secure products: Securing the Mobile Enterprise |