Exemplo n.º 1
0
        public static GameWorld Create(FlyScene scene, IRand rand)
        {
            var playerEmpire = new Empire();
            var enemyEmpire  = new Empire();

            return(new GameWorld(playerEmpire, enemyEmpire, scene, rand));
        }
Exemplo n.º 2
0
 public GameWorld(Empire playerEmpire, Empire enemyEmpire, FlyScene scene, IRand rand)
 {
     this.playerEmpire = playerEmpire;
     this.enemyEmpire  = enemyEmpire;
     this.scene        = scene;
     this.gravity      = new SceneGravityApplicator(scene);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JukeBox"/> class.
        /// </summary>
        /// <param name="rand">
        /// A random number generator.
        /// </param>
        /// <param name="audioSystem">
        /// The audo system responsible
        /// </param>
        public JukeBox(IRand rand, AudioSystem audioSystem)
        {
            this.rand        = rand;
            this.audioSystem = audioSystem;

            this.ManualChangeAllowed = true;
            this.FadeInIsEnabled     = true;
            this.FadeOutIsEnabled    = true;
        }
Exemplo n.º 4
0
        public AsteroidPusher(IRand rand)
        {
            Contract.Requires(rand != null);

            this.rand = rand;
        }
Exemplo n.º 5
0
 public KamikazeBlubWave(IRand rand)
 {
     this.rand       = rand;
     this.enemyCount = DefaultEnemyCount.GetRandomValue(this.rand);
 }
Exemplo n.º 6
0
 public Generator(IRand rand)
 {
     this.rand = rand;
 }
Exemplo n.º 7
0
 public FixedIntervalWaveGuide(GameWorld world, IRand rand)
 {
     this.world = world;
     this.rand  = rand;
 }
Exemplo n.º 8
0
 public RecursiveSplitMazeGenerator(IRand rand, Dimension dimension)
 {
     this.rand = rand;
     maze      = Maze.Build(dimension);
 }
 public RandomMazeGenerator(IRand rand)
 {
     this.rand = rand;
 }