public static GameWorld Create(FlyScene scene, IRand rand) { var playerEmpire = new Empire(); var enemyEmpire = new Empire(); return(new GameWorld(playerEmpire, enemyEmpire, scene, rand)); }
public GameWorld(Empire playerEmpire, Empire enemyEmpire, FlyScene scene, IRand rand) { this.playerEmpire = playerEmpire; this.enemyEmpire = enemyEmpire; this.scene = scene; this.gravity = new SceneGravityApplicator(scene); }
/// <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; }
public AsteroidPusher(IRand rand) { Contract.Requires(rand != null); this.rand = rand; }
public KamikazeBlubWave(IRand rand) { this.rand = rand; this.enemyCount = DefaultEnemyCount.GetRandomValue(this.rand); }
public Generator(IRand rand) { this.rand = rand; }
public FixedIntervalWaveGuide(GameWorld world, IRand rand) { this.world = world; this.rand = rand; }
public RecursiveSplitMazeGenerator(IRand rand, Dimension dimension) { this.rand = rand; maze = Maze.Build(dimension); }
public RandomMazeGenerator(IRand rand) { this.rand = rand; }