Example #1
0
        public Space(int width, int height, AgentsCollisionModel agentsCollisionModel)
        {
            Width  = width;
            Height = height;
            fields = new SpaceField <TAgent> [width, height];
            AgentsCollisionModel = agentsCollisionModel;

            for (int y = 0; y < height; y++)
            {
                for (int x = 0; x < width; x++)
                {
                    fields[x, y] = new SpaceField <TAgent>(this, x, y, AgentsCollisionModel == AgentsCollisionModel.Ghost);
                }
            }
        }
Example #2
0
 public InteractiveSpace(int width, int height, AgentsCollisionModel agentsCollisionModel) : base(width, height, agentsCollisionModel)
 {
 }
Example #3
0
 public InteractiveSpace(SpaceTemplate spaceTemplate, AgentsCollisionModel agentsCollisionModel) : base(spaceTemplate, agentsCollisionModel)
 {
 }
Example #4
0
 public CardinalMovementSpace(int width, int height, AgentsCollisionModel agentsCollisionModel) : base(width, height, agentsCollisionModel)
 {
 }
Example #5
0
 public CardinalMovementSpace(SpaceTemplate spaceTemplate, AgentsCollisionModel agentsCollisionModel) : base(spaceTemplate, agentsCollisionModel)
 {
 }
Example #6
0
 public Space(SpaceTemplate template, AgentsCollisionModel agentsCollisionModel) : this(template.Width, template.Height, agentsCollisionModel)
 {
     AddObstacles(template.Obstacles);
 }