hwoodward / Remote-Card-Games

Program for playing card games online/remotely. Goal is to play a game of hand and foot with multiple groups in different locations.
MIT License
2 stars 1 forks source link

Nit pick question about ClickableImage.draw #68

Closed slwoodward closed 4 years ago

slwoodward commented 4 years ago

ClickableImage.draw needs to have x/y passed to it. In general this is necessary, but when the image is part of a wrapped card, the x-y coords are already part of the wrapped card object, so the code does not look elegant. I could write another routine for wrapped cards, but would still need ClickableImage.draw for images that aren't wrapped cards. Options:

  1. Have two routines, ClickableImage, and ClickableCard, latter would use wrapped card's x,y.
  2. Continue as is. Opinion?
slwoodward commented 4 years ago

Concluded that it was simple to have a single routine.