Effect

from dgisim import Effect

Effect acts as an abstract class that could be extended to carry pending effects waiting to be executed in a game state.

class Effect
execute(game_state: GameState) GameState
Returns:

the game state after effect execution.

Called to execute the effect on the passed-in game_state.

The actual implementations of the effects could be imported from:

from dgisim.effect import *

There are too many effects, so the documentation is not going to elaborate here. Please refer to the source code for more information.