示例#1
0
 public void Dispose()
 {
     Array.Clear(tileGrid, 0, tileGrid.Length);
     intersectionList.Clear();
     townList.Clear();
     worldVehicles = null;
 }
示例#2
0
        bool firstDownOutsideWorld;  //Hack to make sure our first down is in the world

        public World(int worldWidth, int worldHeight, Tile[,] tileGrid, List <Intersection> intersectionList, List <Town> townList)
        {
            this.worldWidth       = worldWidth;
            this.worldHeight      = worldHeight;
            this.tileGrid         = tileGrid;
            this.intersectionList = intersectionList;
            this.townList         = townList;

            UpdateWorldParameters();
            UpdateShadowSide();
            dragSprite                = GraphicsManager.GetSpriteColour(20);
            worldVehicles             = new WorldVehicles();
            WorldController.worldFire = new WorldFire();
        }