Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: curiosity
Home

[Freeciv-Dev] Re: curiosity

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx, Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Cc: Paul Zastoupil <paulz@xxxxxxxxxxxx>, Reinier Post <rp@xxxxxxxxxx>, Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: curiosity
From: Andrew Sutton <ansutton@xxxxxxx>
Date: Sat, 1 Dec 2001 09:18:41 -0500

On Saturday 01 December 2001 04:41 am, Raimar Falke wrote:
> And this is the next major design issue: which features of C++ you
> want to use.

good question. i think inheritance - at some level will be an important 
property of the language for the implementation of freeciv 2. maybe not for 
unis, specifically, but other aspects of the game - like everything that can 
be put on the map.

> > e.g. take SGI's STL. it works on tons of systems with tons of compilers.
>
> Isn't STL now part of the C++ standard?

yup. actually STL is one of major features c++ that would be readily taken 
advantage. in the current version of freeciv, game objects are stored in 
lists. when you need to look up an object, you have to iterate thru the list 
until you find it... what is that? average search time = O(n/2) or something 
like that?

compare that with std::map<> where lookup times are constant (although 
insertion is pretty bad when the map is resized). that's okay though... 

andy


[Prev in Thread] Current Thread [Next in Thread]