Mud Coding in C++

by Unknown

Back to The Real World.

Unknown2004-12-17 17:49:31
Sorry for having a similar name to an existing topic...
Anyway, I have been coding a mud in C++, on and off, for over a year now. I have a problem doing the login sequence, however.

My mud works by haveing an vector (spiffy aray) with all the characters (character objects) - it steps through them and sees if they have imput any commands, and if so it runs them. When it gets to the end, it loops back to the beggining.

I just don't see how one could put a login sequence into this. Idealy, you can login, and then your socket gets asociated with your character in the vector.

Anyone have any ideas? I don't need the actual code, just the theory behind it.