RE: [Dev-C++] 'extern const' and std::vector
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-05-01 17:24:45
|
I assume MMORPG is Massive Multiplayer Online Role-Playing Game. If the game isn't too boring, I'm also assuming that you don't walk through the rooms in a sequential order. If you need random access, I would really go for a tree construct. Each node might point zero more alternative rooms, while you would still be able to locate a room in O(log n) time. If the tree for some reason gets too large to keep in memory, it might easily be placed partially on disk. /Per W On Thu, 1 May 2003, Ioannis Vranos wrote: > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of David McKen > Sent: Thursday, May 01, 2003 6:22 PM > To: dev...@li... > Subject: Re: [Dev-C++] 'extern const' and std::vector > > > > I think I better explain my current position. > > I am helping create a MMORPG. The vector is going to be used for access to > the rooms. The current room system uses vnums (each rooms is assigned a vnum > which is used to access it, another reason for my choice of vector). exits > to other rooms just refrence the vnum and the code knows exactly what room > to put the user in. > > > The rooms are changing sequencially, that is you do not need random access? > > > Ioannis Vranos > > * Programming pages: <http://www.noicys.freeurl.com/> > http://www.noicys.freeurl.com > * Alternative URL 1: <http://run.to/noicys> http://run.to/noicys > * Alternative URL 2: <http://www.noicys.cjb.net/> http://www.noicys.cjb.net > > > Anti-racism movement: <http://www.positive-youthfoundation.org/> > http://www.positive-youthfoundation.org > Iraq Peace Pledge: <http://www.peacepledge.org/> http://www.peacepledge.org > > |