[Crossfire-wiki] [Crossfire DokuWiki] page added: dev_todo:server_cleanup

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Sep 17 01:49:09 CDT 2006


A page in your DokuWiki was added or changed. Here are the details:



Date        : 2006/09/17 01:49

User        : mwedel

Edit Summary: created



The current code organization for the server is a bit of a mish mash.



Code in the common directory should just be for the common aspects, but th
ere is code in that directory that seems more in place in the server.



The object code also tends to be spread amongst several files.  Thoughts o
n this:

  * One file for each object type (or logical grouping of objects), which 
contains all the code related to it (time events, apply events, etc)

  * Each file could register callbacks for the operations it wants.

  * The parameter for all callbacks for all objects would have to be the s
ame, require a bit of forethought.



This would largely re-organize the layout of objects, but would be an impr
ovement.



As part of this, I think the number of object types needs to be collapsed 
- there are a bunch of different armor types, but for logical purposes, th
ey are the same, just go on different body parts.



The current fix_player() code makes some assumption that all objects behav
e in a similar fashion, so it then makes sense that all objects that behav
e similarly have the same type.





IP-Address  : 209.204.178.229

Old Revision: none

New Revision: http://wiki.metalforge.net/doku.php/dev_todo:server_cleanup



-- 

This mail was generated by DokuWiki at

http://wiki.metalforge.net/





More information about the crossfire-wiki mailing list