Enemy.step#
- Enemy.step(action: Action, front_object: Self | None = None, walkable: bool = False) float#
Perform enemy movement. Behaviour is determined by starting position and reach of the enemy grid object.
- Parameters:
action (
Action) – Action taken in a grid environment by the RL agent.front_object (
GridObject| None, optional) – Grid object currently in front of the RL agent, by default None.walkable (bool, optional) – Wheter the agent can move over the cell in front, by default False.
- Returns:
Returns 0.
- Return type:
float