DnD_5e.team package
Module contents
- class DnD_5e.team.Team(**kwargs)[source]
Bases:
objectA container class for
Combatants, to be used byEncounter- has_member(member: Combatant) bool[source]
- Parameters:
member (Combatant) – the member who may or may not be on the team
- Returns:
True if member is in the list of combatants, False otherwise
- has_all_with_condition(condition: str)[source]
- Returns:
True if all combatants have the given condition, False otherwise
- has_any_with_condition(condition: str)[source]
- Returns:
True if at least one combatant has the given condition, False otherwise
- has_some_not_all_with_condition(condition: str)[source]
- Returns:
True if some combatants have the condition and other combatants don’t, False otherwise
- has_all_unconscious() bool[source]
- Returns:
True if all combatants are unconscious, False otherwise
- has_any_unconscious() bool[source]
- Returns:
True if at least 1 combatant is unconscious, False otherwise
- has_some_not_all_unconscious()[source]
- Returns:
True if some but not all combatants are unconscious
- has_any_conscious() bool[source]
- Returns:
True if at least 1 combatant is conscious, False otherwise