[Kde-games-devel] Re: Sending a message to one KGame client

Andreas Beckermann kde-games-devel@mail.kde.org
Sun, 2 Mar 2003 15:07:07 +0100


On Sunday 02 March 2003 06:43, Neil Stevens wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Friday February 28, 2003 03:38, Andreas Beckermann wrote:
> > On Thursday 27 February 2003 03:26, Neil Stevens wrote:
> > > On Tuesday February 25, 2003 01:02, Martin Heni wrote:
> > > > However, I think this is not necessarily the function wanted in
> > > > Neils application. I suppose it would be better to just target the
> > > > games with the direct messaged sent. I would assume in this concept
> > > > he has only one (real) player per game anyway?
> > >
> > > Yes, I will only have one player per Megami instance.
> >
> > Hm. So how will you  show e.g. the names of other players to your
> > primary player? When there is only one KPlayer object per client...
> > Do you maintain an additional data set?
>
> I meant player as in human player, not KPlayer.  I do use the KPlayers to
> populate my views.  That's why I want to hide certain information. :-)

Ah ok, I understand :)

> > I have tested this patch with a slightly hacked KGameChat widget, so
> > that it sends out private messages and it seems to work. Broadcast
> > messages continue to work, so I think there should be no unwanted
> > side-effects.
> >
> > Is your game already so far that you can test this patch?
>
> Well, development stalled while I waited to see if KGame could do what I
> need, but I'll now get back to work.  Would your patch work against
> KDE_3_1_BRANCH, or am I going to have to make a build of HEAD libkdegames?

The patch is meant for KDE HEAD, you can try to patch BRANCH with it, but I 
didn't test (don't have a current BRANCH checkout...).
If you integrate the lines from the patch manually then it should work with 
BRANCH as well.

CU
Andi