[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: none
From: |
Ingo Ruhnke |
Subject: |
Re: none |
Date: |
16 Sep 2002 19:19:40 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
David Philippi <address@hidden> writes:
> Strange, I thought that the data would be initialized in the XY_Data
> default constructor which ought to be called by
> WorldObjsDataFactory... Initializing them in the data class is
> probably not the best idea anyway since then every Surface of every
> WorldObj would be initialized. Some day this could lead to quite a
> lot of memory usage.
The factory doesn't call the default constructor:
WorldObjData* create (xmlDocPtr doc, xmlNodePtr cur) {
return new T (doc, cur);
}
Anyway, CL_Surfaces shouldn't have been part of the data objects in
the first place, I also cleaned that up mostly.
--
WWW: http://pingus.seul.org/~grumbel/
Games: http://pingus.seul.org/~grumbel/gamedesigns/
JabberID: address@hidden
ICQ: 59461927
- Re: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs conveyor_belt.cxx,1.13,1.14 conveyor_belt.hxx,1.10,1.11 ice_block.cxx,1.13,1.14 ice_block.hxx,1.9,1.10 switch_door.cxx,1.15,1.16 switch_door.hxx,1.12,1.13, David Philippi, 2002/09/15