rocket_league.state_mutators.fixed_team_size_mutator
Classes
A StateMutator that initializes the game with a fixed number of cars on each team. |
Module Contents
- class rocket_league.state_mutators.fixed_team_size_mutator.FixedTeamSizeMutator(blue_size=1, orange_size=1)
Bases:
rlgym.api.StateMutator
[rlgym.rocket_league.api.GameState
]A StateMutator that initializes the game with a fixed number of cars on each team.
- blue_size = 1
- orange_size = 1
- apply(state: rlgym.rocket_league.api.GameState, shared_info: Dict[str, Any]) None
Function to be called each time the environment is reset. This function should change any desired values of the State. The values within State are sent to the transition engine to set up the initial state.
- Parameters:
state – State object to be modified with desired state values.
shared_info – A dictionary with shared information across all config objects.
- _new_car() rlgym.rocket_league.api.Car