Esempio n. 1
0
 //Allow other classes to remove their light from the lighting queue
 public void removeLight(LightingController.LightSource light)
 {
     lighting.Remove(light);
 }
Esempio n. 2
0
        /// <summary>
        /// Load game content.
        /// </summary>
        protected override void LoadContent()
        {
            // Initialise game object containers.
            gameObjects = new List<GameObject>();
            addedGameObjects = new Stack<GameObject>();
            removedGameObjects = new Stack<GameObject>();

            // Create game objects.
            worldBase = new Land(this, this.size);
            gameObjects.Add(worldBase);
            ocean = new Ocean(this, this.size);
            gameObjects.Add(ocean);
            lighting = new LightingController(this);
            gameObjects.Add(lighting);
            player = new Player(this);
            gameObjects.Add(player);
            controller = new EnemyController(this);
            gameObjects.Add(controller);

            base.LoadContent();
        }
Esempio n. 3
0
 //Allow other classes to add a light to the lighting queue
 public void addLight(LightingController.LightSource light)
 {
     lighting.Add(light);
 }