View Single Post
Old Sep 28th, 2006, 9:56 AM   #10
programmingnoob
Hobbyist Programmer
 
Join Date: Feb 2006
Posts: 154
Rep Power: 3 programmingnoob is on a distinguished road
alright, let me sum up my approach and then you guys can tell me if you find any loopholes:
The first player enters the game, it does not see anybody in the queue, then it adds itself to the queue and waits for the second person.
The second person comes and sees the first person in the queue, the second person is acting like a guest now and the first person is acting like a host.
Doubt: Am I really supposed to put the "host" in the queue?

In the meanwhile the third person tries to join the game, but then it just adds itself to the queue and waits for one of them to exit/lose the game.
Doubt: How can you determine how many people are in the queue? I mean what is the command?

now the actual game, the guest sends the message to the host telling it what tool it has picked etc. The assumption I am making here is that the client does not remove itself from the queue right after making the connection, it just waits there and picks tool for itself and sends the message to the host.
Doubt: How do I delete the queue place associated with this guest? msgctl makes no sense to me! Could somebody explain that to me a little bit?
programmingnoob is offline   Reply With Quote