kellyelton/OCTGN — Issue #26: Stick python functions to game events (end turn, load deck, etc)
Author: brine
Created: 2012-01-31 16:17:01+00:00
State: open

The "end turn" button has pre-set functions within OCTGN, and there's no way to access or modify it through the game definition.

I would like to see two things done with this:

1) Allow the game definition to assign custom functions to the end turn button. If ending the turn is supposed to clear all highlights and targets from the cards, then we should be able to program those functions to the end turn button. Essentially there would be a new field in the game def's xml file, which would tell OCTGN which python script to execute when the end turn button is pressed.

2) Allow python scripts to call the end turn function. If we create functions such as "go to next phase/step", then eventually that script will cycle to the end turn step, in which case we will want to trigger the end turn function without having to click the button.