[gameprogrammer] Re: General Purpose Double Linked List Class
- From: Rasmus Toftdahl Olesen <halfdan@xxxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Wed, 01 Mar 2006 21:53:29 +0100
ons, 01 03 2006 kl. 15:03 +0100, skrev Torsten Giebl:
> Hello !
>
>
> > ROFL! I was a programmer before C was well known and long before C++ was
> > invented. I have had to code different kinds of linked lists using pointers
> > many many times. As a result I look at the STL as a wonderful thing that
> > keeps me from having to waste my life hacking yet another version of a
> > linked list. (And Boost, don't forget Boost) Doing it a couple of times to
> > learn is great. Doing it many times because there is no choice, well you
> > gotta do what you gotta do. Doing it when you don't need to? That feels a
> > lot like watching American Idol. I did it for 15 minutes once, turned of
> > the TV and said "Well there is 15 minutes of my life that I will never get
> > back..." :-)
>
>
> Now i am using STL directly in my little 2D game
> and it works better than before. But as this
> game should be as low level as possible, maybe porting
> it to the GP2X or Pocket PCs, i may replace the STL calls
> in the future.
STL is about as small as you can get - no libraries to link to - and
everything is compiled "just for you" - or inline - or whatever you want
to call it.
If you use many different types of stl containers - one is implemented
for each type, e.g. if you use both an std::list<Bonus*> and an
std::list<Enemy*> - the compiler will generate code for two classes -
but hey - i think we are talking about something like 4 KB - tops!
But i small is your thing - just use std::list<void*> containers and
cast away ;-)
> The game is a little Turrican Clone.
Looks cool! I always liked 2D platform games - go Mega Man! ;-)
--
Rasmus Toftdahl Olesen <halfdan@xxxxxxxxxxxx>
halfdans.net
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Torsten Giebl
Other related posts:
- » [gameprogrammer] General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Torsten Giebl