std::list<Wizard*> wizards;
Wizard *wizard1 = new Wizard();
wizard1->spawn();
wizards.push_back(wizard1);
Wizard *wizard2 = new Wizard();
wizard2->spawn();
wizards.push_back(wizard2);
for each (Wizard* wizard in wizards)
{
wizard->printWorldLocation();
}
appeared on the top left of the screen with the other links to reference, articles etc.
I gather that it is sufficiently complete for general consumption :+), or maybe there is some other reason why there doesn't seem to be a top level link to it?
@TheIdeasman
It will happen when I get it together enough to finish the FAQ -- at least enough that it can be published. (I hope to have some time to work on it more soon.) [edit] If you want to pick a topic and try your hand at writing some part of the FAQ, or if you find errors in some part and think you can do better, PM me your suggestions. [/edit]
@PapaSmurf
Yes. RNGs work best when they exist for a long time. When you try to reset it over and over you are breaking it -- all the nice characteristics you get are lost and you are left with only the bad.
Given the above on RNG's, main should seed and generate the random integer location coordinates to be used in a setWorldLocation(int,int) method rather than the coordinates being seeded and generated within the class method.