[MUD-Dev] Command Qeues - Was "Combat Systems"

Ben bjchambers at phoenixdsl.com
Fri Jul 21 12:58:02 New Zealand Standard Time 2000

    The way commands work in real life is that each person knows what he or
she is doing, and then nature decides the effect of that.  I have decided
that the best way to implement a similar system would be to have each player
keep track of their commands, then the server thread reads them at the
appropriate time... for instance the server command queue knows that the
player Boffo entered a command to dig panama canal, that is set to go in x
rounds.  During that time Boffo changes his mind, so when the server
executes it, it checks and sees that Boffo is no longer doing that action,
and so doesn't execute it...  I know this isn't the best way, but it is the
only way I could think of.  I did it this way because it limits cross thread
communication, the server thread handles all the output...  Any ideas as to
how to handle the command queue in a better way? Please respond, thanks.

MUD-Dev mailing list
MUD-Dev at kanga.nu

More information about the MUD-Dev mailing list