[Kde-games-devel] Re: Re: Re: Re: Incomplete Information and KGame
Neil Stevens
kde-games-devel@mail.kde.org
Sun, 16 Feb 2003 15:39:58 -0800
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday February 16, 2003 02:07, Martin Heni wrote:
> > Looking at the diagram there, there are three connections to the
> > server. Two are remote, one is direct. Let's assume the direct
> > connection is Player A, and the remote connections are Player B and
> > Player C. I want to ensure Player A's secret information is only made
> > available locally, never sent down either socket. I also don't want
> > Player B's information sent down Player C's socket, nor do I want
> > Player C's ifnormation sent down player B's socket.
> >
> > Can I do that within KGame?
>
> I am not fully sure here, as I did not implement the low level network
> functions. I think that if you use the sentMessage() I mentioned earlier
> and use as "receiver" the player of your local game
> (createPlayerId(player,game)) that the message is not sent to anybody
> else. I am not sure however because there are a lot of "broadcast"
> commands in the network code and I do not know where to it is
> broadcasted. However, the underlying network system definitely does
> support a direct addressed client. I am just not sure whether this
> connection is made between the KGameNetwork functions and the underlying
> KMessageIO/Client/Server modules. In the worst case you could try to
> directly access the KMessageIO/Client/Server objects provided by the
> KGame object to later on integrate this function into the KGame library.
> Unfortunately, this low level network code is beyond my understanding
> ;-) Burkhard.Lehner@gmx.de or Andreas Beckermann <b_mann@gmx.de>
> could help here I suppose.
OK, thanks!
> Nevertheless, I would recommend you to try to use the library and
> incorporate improvements directly into the libray and not only in
> your game because in this way the whole of KDE and all games
> can profit from the code.
I agree, and the only thing that would slow me down is time constraints. =20
But Megami is branched for just this reason: if I can't add what I need=20
to KGame right away, I can leave the branch alone and come back to finish=20
later. :-)
=2D --=20
Neil Stevens - neil@qualityassistant.com
"Distinctions by race are so evil, so arbitrary and insidious that a
state bound to defend the equal protection of the laws must not allow
them in any public sphere." -- Thurgood Marshall
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+UCFPf7mnligQOmERAgm6AKCEZ+10b9voCpLM9QoRsY/OIrsQ0gCfUXif
/382N6SBZ2rAuiXdr9Lcuv0=3D
=3Dry2U
=2D----END PGP SIGNATURE-----