Page 2 of 2

Re: What card was discarded?

PostPosted: 01 Aug 2009, 15:30
by mtgrares
I was thinking last night, it seems to me the best thing to do would be to add a method to GameAction like discard(String player, String parseme). That way CardFactory can just use that method instead of jumping through loops.

Code: Select all
GameAction.discard(String player, String parseme)
{
  if(player is Computer)
    make the computer discard something
  else //human
    input = get appropriate input for human player
    AllZone.InputControl.setInput(input) 
}
Fixed: AllZone.InputControl.getInput(input) to AllZone.InputControl.setInput(input)

Re: What card was discarded?

PostPosted: 01 Aug 2009, 17:56
by Rob Cashwalker
There ya go... that is the proper method. When I get a chance to jump back into the code I'll do just that.