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); } } }
public InteractiveSpace(int width, int height, AgentsCollisionModel agentsCollisionModel) : base(width, height, agentsCollisionModel) { }
public InteractiveSpace(SpaceTemplate spaceTemplate, AgentsCollisionModel agentsCollisionModel) : base(spaceTemplate, agentsCollisionModel) { }
public CardinalMovementSpace(int width, int height, AgentsCollisionModel agentsCollisionModel) : base(width, height, agentsCollisionModel) { }
public CardinalMovementSpace(SpaceTemplate spaceTemplate, AgentsCollisionModel agentsCollisionModel) : base(spaceTemplate, agentsCollisionModel) { }
public Space(SpaceTemplate template, AgentsCollisionModel agentsCollisionModel) : this(template.Width, template.Height, agentsCollisionModel) { AddObstacles(template.Obstacles); }