AIMA.Core.Environment.XYEnv.XYEnvironmentState.XYEnvironmentState C# (CSharp) Method

XYEnvironmentState() public method

public XYEnvironmentState ( int width, int height ) : System
width int
height int
return System
        public XYEnvironmentState(int width, int height)
        {
            this.width = width;
            this.height = height;
            for (int h = 1; h <= height; h++)
            {
                for (int w = 1; w <= width; w++)
                {
                    objsAtLocation.put(new XYLocation(h, w),
                            new LinkedHashSet<EnvironmentObject>());
                }
            }
        }