pytower.selection
- class pytower.selection.CustomNameSelector(select_name)[source]
- Parameters:
select_name (str)
- class pytower.selection.NameSelector(select_name)[source]
- Parameters:
select_name (str)
- class pytower.selection.ObjectNameSelector(select_name)[source]
- Parameters:
select_name (str)
- class pytower.selection.PercentSelector(percentage)[source]
- Parameters:
percentage (float)
- class pytower.selection.RandomSelector(probability)[source]
- Parameters:
probability (float)
- class pytower.selection.Selection[source]
-
- get()[source]
Converts Selection into TowerObject, which is useful when only one TowerObject is expected
- Return type:
- Returns:
Gets the first object in this Selection object, or None if Selection is empty
- group()[source]
Creates a new group based on the selection
- Return type:
- Returns:
Group ID of the new group
- class pytower.selection.Selector(name)[source]
-
- abstract select(everything)[source]
Selectors take in a Selection and output a new Selection. You can think of these Selectors operating on the set of everything, and selecting a subset. However, nothing’s stopping you from then selecting on that subset, and so on, further and further refining the selection using Selector objects.