Example #1
0
 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;
 }
Example #2
0
        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;
                }
            }
        }
Example #3
0
 public Level(MultiLevelWorld world)
 {
     this.Entities = new List <IMultiLevelEntity>();
     this.World    = world;
 }
Example #4
0
 public Level(MultiLevelWorld world)
 {
     this.Entities = new List<IMultiLevelEntity>();
     this.World = world;
 }