Source code for VegansDeluxe.core.Actions.StateAction

from VegansDeluxe.core.Actions.Action import Action
from VegansDeluxe.core.Entities import Entity
from VegansDeluxe.core.Session import Session
from VegansDeluxe.core.States import State


[docs]class StateAction(Action): def __init__(self, session: Session, source: Entity, state: State): super().__init__(session, source) self.state = state
[docs]class FreeStateAction(StateAction): @property def cost(self): return False
[docs]class DecisiveStateAction(StateAction): @property def cost(self): return True