Search found 8 matches
- Fri Sep 25, 2009 11:23 am
- Forum: Programming Discussion
- Topic: Keeping Track Of Classes
- Replies: 15
- Views: 1539
Re: Keeping Track Of Classes
In my current project i'm implementing polymorhism, which allows me to store a bunch of pointers (of the derived objects) into the same container, because the pointers being used are of the Base type. Yeah, I sware by polymorphism too, but what if you need to use a method from one of the specialise...
- Fri Sep 25, 2009 10:49 am
- Forum: Programming Discussion
- Topic: Keeping Track Of Classes
- Replies: 15
- Views: 1539
Keeping Track Of Classes
This isn't really a question - just want to see how other people do this. If you've got a base class object, with other classes derived from it, what's the best way to store and keep track of each class? I just have a few vectors and some accessor functions: vector<object*> objects; vector<character...
- Tue Sep 22, 2009 10:47 am
- Forum: General/Off-Topic
- Topic: Music you code to
- Replies: 26
- Views: 2944
Re: Music you code to
Blink 182
Nirvana
Sum 41
The Offspring (got into them after I first played Crazy Taxi xD)
Sex Pistols
Foo Fighters
Elton John
...and Nobuo Uematsu. He's a genius.
Nirvana
Sum 41
The Offspring (got into them after I first played Crazy Taxi xD)
Sex Pistols
Foo Fighters
Elton John
...and Nobuo Uematsu. He's a genius.
- Mon Sep 07, 2009 3:43 pm
- Forum: Programming Discussion
- Topic: Pointers...What is the point?
- Replies: 14
- Views: 2035
Re: Pointers...What is the point?
Player* Sonic = new Player(); Character* Mario = new Character(); Sonic->Attack(Mario); //cleanup, further down somewhere in your code when the objects aren't needed delete [] Sonic; delete [] Mario; There's an exploit here. Drop the []'s, delete [] is trying to delete an array while you did not al...
- Mon Sep 07, 2009 2:01 pm
- Forum: Programming Discussion
- Topic: Pointers...What is the point?
- Replies: 14
- Views: 2035
Re: Pointers...What is the point?
Yeah, it took me a while to "get" pointers. The memory management stuff is a big pain in the arse. A big reason is virtual functions: Lets say that you're coding an RPG. In the RPG you have a character class, and inside it the virtual function Attack: class Character { public: //usual stuf...
- Tue Aug 11, 2009 4:48 pm
- Forum: Game Development
- Topic: What projects are you currently working on?
- Replies: 500
- Views: 186867
Re: What projects are you currently working on?
After trying out all the usual APIs and lbraries (SDL, Allegro, OpenGL) I've finally settled with Direct3D9. I bought a couple of books, and currently putting together a library of all the useful D3D functions I can find (and write myself ;)). I'm thinking about what game I will make to test the lib...
- Sun Jun 21, 2009 8:09 am
- Forum: Programming Discussion
- Topic: A good GBA / easy console SDK?
- Replies: 11
- Views: 1511
A good GBA / easy console SDK?
Could anyone point me to a development kit / toolchain for the gameboy advance?
I want to see what developing for consoles is like, so I thought GBA might be a good place to start. If I'm used to OpenGL and SDL, what's the most similar console to go for?
Thanks everyone
I want to see what developing for consoles is like, so I thought GBA might be a good place to start. If I'm used to OpenGL and SDL, what's the most similar console to go for?
Thanks everyone
- Sun Jun 07, 2009 10:57 am
- Forum: General/Off-Topic
- Topic: Official "Hello, World! (I'm new!)" thread
- Replies: 821
- Views: 629979
Re: Official "Hello, World! (I'm new!)" thread
cout << "Hello World" << endl; I've just joined your forum, looks very good :) I've only been learning C++ for about 4 / 5 months, mainly programming text based RPGs and mods for games like Orbiter and FSX. I'm currently learning (or trying to learn <_<) SDL and OpenGL. Can anyone point m...