public PathFindingLevel(MultiLevelWorld world) : base(world) { int width = PathFinderHelper.RoundToNearestPowerOfTwo(Tileset.TILESET_WIDTH); int height = PathFinderHelper.RoundToNearestPowerOfTwo(Tileset.TILESET_HEIGHT); this.m_PathFindingGrid = new byte[width, height]; for (int x = 0; x < width; x++) for (int y = 0; y < height; y++) this.m_PathFindingGrid[x, y] = (byte)PathFinderHelper.EMPTY_TILE; }
public PathFindingLevel(MultiLevelWorld world) : base(world) { int width = PathFinderHelper.RoundToNearestPowerOfTwo(Tileset.TILESET_WIDTH); int height = PathFinderHelper.RoundToNearestPowerOfTwo(Tileset.TILESET_HEIGHT); this.m_PathFindingGrid = new byte[width, height]; for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { this.m_PathFindingGrid[x, y] = (byte)PathFinderHelper.EMPTY_TILE; } } }
public Level(MultiLevelWorld world) { this.Entities = new List <IMultiLevelEntity>(); this.World = world; }
public Level(MultiLevelWorld world) { this.Entities = new List<IMultiLevelEntity>(); this.World = world; }