Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rewrite (was Re: Classes, Race, Experience proposal)



 Well, according the 'malloc command on my version of crossfire, the
object structure is 240 bytes, player structure 25442 (most of which
is probably storing the text of the information window), and hte map
is 334.

 Someone said recently that the object structure contained a bunch
of un-needed elements.  After looking it over, I found none.  This is 
because the object structure applies to all objects (monsters, items,
walls, etc).  Some savings could probably be made by having different
structures for different objects, or static/dynamic portions.  But
just a quick looks shows 14 pointers that will be required in any
structure.  Also, at 240 bytes per object, I don't really consider it
a problem (8000 objects will fit within 2 megs of memory, which should
not be a problem for any machine).

 The player object can probably be cleaned up a lot.  However, in
a client/server situation, major changes will need to be made to it.

 Also, some functions are pretty bad.  But cleaning up those functions
is hardly a major-rewrite.

 --Mark