OO programming is ideal for game writing using classes but alongside classes you can use the 'list' commands in c++. Using linked lists helps tidy up your code because everything is controlled from within the class and the data is stored neatly in a linked list. Have a study of these pages for more information on lists.
http://www.java2s.com/Tutorial/Cpp/0340__list/Catalog0340__list.htm
GDK may be a bit cumbersome assigning objects to a constant number instead of a variable but used with this:
int findblankobject() {
int oobj=0;
while ( dbObjectExist( obj ) ) { obj++; }
return obj; }
... can add a little more OO to DGDK.
Warning! May contain Nuts!