Search found 5 matches
- Thu Aug 20, 2009 5:18 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Class Vector problem...
- Replies: 11
- Views: 671
Re: Class Vector problem...
Ah perfect, i think that's all my problems solved :] For now... , i can now spawn npcs on demand yay! Thanks again for the help!
- Thu Aug 20, 2009 5:09 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Class Vector problem...
- Replies: 11
- Views: 671
Re: Class Vector problem...
'sorry didn't read your last post thorough enough ;),i'm little sleepy :P' but aye, that seems to of worked fine, thanks! On another note, how would i pin-point a certain member in the vector? mynpcs[0] for the first npc? And i take it i need to run through and 'delete' all the 'new' npcs created? t...
- Thu Aug 20, 2009 5:00 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Class Vector problem...
- Replies: 11
- Views: 671
Re: Class Vector problem...
ah yes, that did work ^^ thank you! :] Would there be a way in order to 'create npc's' where i don't define the name, rather it adds a new one to the vector and 'indexes' it? So i could spawn them whenever i needed, like in-game via a button? Cheers.
- Thu Aug 20, 2009 4:51 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Class Vector problem...
- Replies: 11
- Views: 671
Re: Class Vector problem...
Hi, thanks for the fast responses, i'll look into using pointers now 'scratch that, i tried the 'jerry' thing and that did work! However is there a way to create an object that will be added directly onto the back of the vector 'no matter the current size' automatically, i.e i could keep creating np...
- Thu Aug 20, 2009 4:26 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Class Vector problem...
- Replies: 11
- Views: 671
[SOLVED] Class Vector problem...
Hey everyone! First post on the Elysian Shadow's forums and unfortunately it's for a problem i have using vectors :[. Hope someone can help, here's the low-down... I'm trying to create a 'vector' of my own defined class 'npc' inorder to create and assign objects using the '.push_back()' function. I ...