intficpy/ifp_game.py
def addSubEvent(self, outer_name, name, text=None):
        """
        Add a sub event to an event on the current turn

        Raises ValueError if an event of the specified name is already defined
        for this turn, and KeyError if the outer event is not defined for the
        current turn

        :param outer_name: the name of the event to add the sub event into
        :type outer_name: str
        :param name: the name of the new event (sub event) to add
        :type name: str
        """
        if not outer_name in self.next_events:
            raise KeyError(
                f"Cannot add sub event to outer event '{outer_name}': "
                "Outer event does not exist in the current turn."
            )
        if name in self.next_events:
            raise ValueError(
                f"Cannot add event with name '{name}': "
                "Name is already used for current turn."
            )
        self.next_events[name] = self.next_events[outer_name].addSubEvent(text=text)

        Add a sub event to an event on the current turn

        Raises ValueError if an event of the specified name is already defined
        for this turn, and KeyError if the outer event is not defined for the
        current turn

        :param outer_name: the name of the event to add the sub event into
        :type outer_name: str
        :param name: the name of the new event (sub event) to add
        :type name: str
        
Add a sub event to an event on the current turn
Raises ValueError if an event of the specified name is already defined
for this turn, and KeyError if the outer event is not defined for the
current turn
Add a sub event to an event on the current turn Raises ValueError if an event of the specified name is already defined for this turn and KeyError if the outer event is not defined for the current turn
def addSubEvent(self, outer_name, name, text=None):
        if not outer_name in self.next_events:
            raise KeyError(
                f"Cannot add sub event to outer event '{outer_name}': "
                "Outer event does not exist in the current turn."
            )
        if name in self.next_events:
            raise ValueError(
                f"Cannot add event with name '{name}': "
                "Name is already used for current turn."
            )
        self.next_events[name] = self.next_events[outer_name].addSubEvent(text=text)
def addSubEvent ( self , outer_name , name , text = None ) : if not outer_name in self . next_events : raise KeyError ( f"Cannot add sub event to outer event '{outer_name}': " "Outer event does not exist in the current turn." ) if name in self . next_events : raise ValueError ( f"Cannot add event with name '{name}': " "Name is already used for current turn." ) self . next_events [ name ] = self . next_events [ outer_name ] . addSubEvent ( text = text )
Add a sub event to an event on the current turn
Raises ValueError if an event of the specified name is already defined
for this turn, and KeyError if the outer event is not defined for the
current turn
Add a sub event to an event on the current turn Raises ValueError if an event of the specified name is already defined for this turn and KeyError if the outer event is not defined for the current turn
"""
        Add a sub event to an event on the current turn

        Raises ValueError if an event of the specified name is already defined
        for this turn, and KeyError if the outer event is not defined for the
        current turn

        :param outer_name: the name of the event to add the sub event into
        :type outer_name: str
        :param name: the name of the new event (sub event) to add
        :type name: str
        """
self
outer_name
the name of the event to add the sub event into
the name of the event to add the sub event into
name
the name of the new event (sub event) to add
the name of the new event ( sub event ) to add
text