Brent,

What I think would be ideal is if the total number of cards that were currently 
in a player's hand could be placed into the caption of the button that opens 
the Window that contains the deck itself (and, thus, could be seen in the main 
window).  So, for example, if there were 3 cards in the Greek player's hand you 
would see something like this on the Window button...

Greek Hand (3)

Possible?

Kevin


  ----- Original Message ----- 
  From: Brent Easton 
  To: [email protected] 
  Sent: Thursday, March 08, 2007 7:45 PM
  Subject: Re: [vassalengine] Re: Counting items in a deck


  Kevin, Neil, 

  This is the hardest part, coming up with a VASSAL mechanism that can achieve 
these goals in a simple fashion.

  It can be very difficult for developers to come up with mechanisms to 
implement features that we do not use/need/have interest in ourselves. If you 
can come up with a good idea, we can then talk about the technical implications 
of implementing it.

  Let your imagination fly...

  How might this be implemented?

  Don't worry about how hard or easy it might be to program; how would like to 
see these sort of feature working in vassal?

  Cheers,
  Brent.

  >*********** REPLY SEPARATOR ***********
  >
  >On 8/03/2007 at 6:20 PM Kevin Coombs wrote:
  >I would love to hear the answers to these questions as well. Anybody??
  >Kevin
  >
  >----- Original Message ----- 
  >From: nrandall 
  >To: [email protected] 
  >Sent: Wednesday, March 07, 2007 10:23 AM
  >Subject: [vassalengine] Re: Counting items in a deck
  >
  >Thanks for this, Tim. But I must admit I have no idea how to get this 
  >feature working, despite several attempts. Would anyone be willing to 
  >do a quick walk-though?
  >
  >More significantly, can it be applied to a deck that the other players 
  >can't see? I.e., a player hand? I want each player to see how many 
  >cards the other player has in his hand at any given time (a pretty 
  >common need in CDGs).
  >
  >Another question: Has anyone come up with a way to allow one player to 
  >draw a random card (or cards) from another player's hand? Or something 
  >like that? CDGs all seem to have 2-3 cards that say "Draw a card 
  >randomly from the other player's hand and discard it". 
  >
  >I realize this could be done by drawing all cards to the map and 
  >rolling a die (1 is left, 2 is second-left, etc.), but if cards auto-
  >flip, that's not ideal. I could build a special deck just for this 
  >purpose that's visible to all and that doesn't flip the cards, but 
  >again it's not ideal.
  >
  >Neil
  >
  >> The reference manual indicates that decks have a Map-level property 
  >called
  >> <name>_numCards. After many frustrating failed attempts at getting 
  >this
  >> to work, I checked out the source code and discovered that the 
  >property is
  >> actually called <name>_numPieces. (Seems like a better name anyhow,
  >> because decks are not restricted to holding cards)
  >> 
  >> Just thought I'd post a note for anyone else searching for the answer.
  >> (I'm sure the docs will get updated in the future ;) )
  >> 
  >> Cheers
  >> 
  >> -Tim
  >>
  >
  >[Non-text portions of this message have been removed]
  >
  >
  >
  __________________________________________________________
  Brent Easton 
  Analyst/Programmer 
  University of Western Sydney 
  Email: [EMAIL PROTECTED]



   

[Non-text portions of this message have been removed]

Reply via email to