On 7/15/05, soonhuat ong <[EMAIL PROTECTED]> wrote:
> I mean how the PlayerPopupMenu identified which player i'm currently click 
> at, cos all 
> players are actually link to the same PopupMenu. Thanks in advance.

I think you should use a container for the players and keep a property
like "selected player"...

Then just assign an onclick handler to each player component, which
will just update the "selected player" property on container with
itself...

Then on the popup you can access the player by using something like:

if Assigned( Game.SelectedPlayer ) then
  Game.SelectedPlayer.WalkTo( X, Y );

-- 
"ME ALIMENTE [http://br-linux.org/noticias/002750.html] hehe"
"Invente, Tente!!! Faça um código eficiente" (Jonas Raoni haha)

Jonas Raoni Soares Silva
---------------------------
Desenvolvedor de aplicações
jonasraoni at gmail dot com
http://www.joninhas.ath.cx:666


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to