-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename trigger state to match convention
- Loading branch information
1 parent
3db2ae5
commit 65fbe1d
Showing
6 changed files
with
50 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
from core.enums.caverna_enums import TriggerStateEnum | ||
|
||
class BaseEffect(object): | ||
def __init__(self, triggerState = TriggerStateEnum.UserChoice): | ||
self._triggerState = triggerState | ||
|
||
def invoke( | ||
self, | ||
player ) -> bool: | ||
raise NotImplementedError("abstract base effect class") | ||
class BaseEffect(object): | ||
def __init__(self, trigger_state=TriggerStateEnum.UserChoice): | ||
self._triggerState = trigger_state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__all__ = [ | ||
"actions", | ||
"cards", | ||
"effects", | ||
"tiles" ] | ||
"actions", | ||
"cards", | ||
"effects", | ||
"tiles"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
__all__ = [ | ||
"animal_storage_effects", | ||
"board_effects", | ||
"conversion_effects", | ||
"population_effects", | ||
"purchase_effects", | ||
"resource_effects", | ||
] | ||
"action_effects", | ||
"animal_storage_effects", | ||
"board_effects", | ||
"conversion_effects", | ||
"population_effects", | ||
"purchase_effects", | ||
"resource_effects", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
from common.entities.player import Player | ||
from core.baseClasses.base_effect import BaseEffect | ||
|
||
|
||
class BasePopulationEffect(BaseEffect): | ||
def Invoke(self, player: Player) -> bool: | ||
raise NotImplementedException("base population effect class") | ||
|
||
raise NotImplementedError("base population effect class") | ||
|
||
|
||
class IncreasePopulationCapEffect(BasePopulationEffect): | ||
def __init__(self, increaseBy: int): | ||
self._increaseBy = increaseBy | ||
def __init__(self, increase_by: int): | ||
self._increaseBy = increase_by | ||
|
||
def Invoke(self, player: Player) -> bool: | ||
raise NotImplementedException() | ||
|
||
raise NotImplementedError() | ||
|
||
|
||
class AllowSixthDwarfEffect(BasePopulationEffect): | ||
def Invoke(self, player: Player) -> bool: | ||
raise NotImplementedException() | ||
raise NotImplementedError() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters