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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Mon Oct 9 11:32:47 CDT 2006


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



Date        : 2006/10/09 11:32

User        : rednaxela

Edit Summary: Move re-organization part to the refactoring todo. Add a not
e about log4c



@@ -3,18 +3,13 @@

  Code in the common directory should just be for the common aspects, but 
there 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
 on this:

-   * One file for each object type (or logical grouping of objects), whic
h 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
 same, require a bit of forethought.

- 

- This would largely re-organize the layout of objects, but would be an im
provement.

- 

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

  

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

  

   Other changes to make:

    * Different log instances and levels should be added (monster.error, p
layer.info, etc), with selection of which to use via command line or setti
ngs.  log4c may be the best to use for this (http://log4c.sourceforge.net/
)

+     * One note, is it doesn't look like log4c builds on win32 as is.

    * all draw_info need to be changed to draw_ext_info

+ 

+  See Also:

+   * [[dev_todo:refactor]]

  

  





IP-Address  : 66.222.158.169

Old Revision: http://wiki.metalforge.net/doku.php/dev_todo:server_cleanup?
rev=1158479206

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