From a45be130e604d537236764460a1d142431964529 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sat, 16 May 2020 12:36:37 +0200 Subject: [PATCH] Added disableMovementTime method --- src/entities/Player.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/entities/Player.py b/src/entities/Player.py index 43b1703..1143b55 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -40,6 +40,13 @@ class Player(Entity): # For GA to determine priorities of random movements self.affinities = affinities + def disableMovementTime(self): + """ + Disables waiting time between each move. + + """ + self.moveTimeout = 0 + def applyWalkingFatigue(self): """ Lowers player's statistics. Applied every few steps.