} // speed is in pixels public BaseRobot(RectangularRoom room, int speed, Random random) { Direction = random.Next(360); this.Speed = speed; RobotPosition = room.randomPosition(random); }