M@gg!
27-08-2006 20:01:52
At the moment I'm programming three classes, that may be of more common interest.
First one is a Ogre::Singleton called MagazineStorage, the second is Magazine and the last is MagazineShell.
MagazineStorage holds Magazines of different bodys. For example for Rockets or what ever you can think of.
Magazine it self stores exact copies of the same body that was chosen during creation of the magazine. For example 500 Bullets.
MagazineShell is just for the management.
The aim of it is, that you can preload for example the bullets and when ever you need one, you can get it out of the magazine and let it automatically return when its livetime expires.
Currently I'm having some problems because the classes shall be as common as possible, but I think I'll find a satisfying solution.
What are you thinking? Would it be a nice to have thing?
First one is a Ogre::Singleton called MagazineStorage, the second is Magazine and the last is MagazineShell.
MagazineStorage holds Magazines of different bodys. For example for Rockets or what ever you can think of.
Magazine it self stores exact copies of the same body that was chosen during creation of the magazine. For example 500 Bullets.
MagazineShell is just for the management.
The aim of it is, that you can preload for example the bullets and when ever you need one, you can get it out of the magazine and let it automatically return when its livetime expires.
Currently I'm having some problems because the classes shall be as common as possible, but I think I'll find a satisfying solution.
What are you thinking? Would it be a nice to have thing?