/// <summary> /// Constructor /// </summary> /// <param name="randomNumberGenerator">function to generate random numbers</param> /// <param name="agent">agent controlling this mouse</param> /// <param name="maze">reference to the maze</param> public GameViewAgent(RandomNumberGenerator randomNumberGenerator, IMouse agent, Maze maze) { Field = new Position(randomNumberGenerator(0, maze.Width), randomNumberGenerator(0, maze.Height)); Agent = agent; this.maze = maze; agent.Initialize(this, randomNumberGenerator); }
public Task Initialize() { return(mouse.Initialize()); }