Example #1
0
 public ScreenManager(ArmaliaGame game)
     : base(game)
 {
     spriteBatch = game.SpriteBatch;
     splashScreen = new SplashScreen(game, this, SPLASH_FILENAME);
     gameplayScreen = new GameplayScreen(game, this);
     CurrentState = GameState.Splash;
 }
Example #2
0
        public LevelManager(ArmaliaGame game, MainCharacter playerCharacter, GameplayScreen gameplayScreen)
        {
            this.game = game;
            this.gameplayScreen = gameplayScreen;
            this.mapMaker = new MapMaker(game, this);
            this.playerCharacter = playerCharacter;

            mapFiles = new Dictionary<string, string>();
            songFiles = new Dictionary<string, string>();
            gameLevels = new Dictionary<string, GameLevel>();

            mapFiles.Add("Building1", @"Maps\Building1\Building1");
            mapFiles.Add("Village0", @"Maps\Village0\Village0");
            mapFiles.Add("Forest1", @"Maps\Forest1\Forest1");
            mapFiles.Add("Forest2", @"Maps\Forest2\Forest2");
            mapFiles.Add("Forest3", @"Maps\Forest3\Forest3");
            mapFiles.Add("Cave0", @"Maps\Cave0\Cave0");
            mapFiles.Add("Building2", @"Maps\Building2\Building2");
            mapFiles.Add("Building3", @"Maps\Building3\Building3");
            songFiles.Add("Village0", @"Music\Home");

            LoadLevels();
        }
Example #3
0
 public Screen(ArmaliaGame game, ScreenManager manager)
 {
     this.game = game;
     this.manager = manager;
 }
Example #4
0
 /// <summary>
 /// Constructor 1
 /// </summary>
 /// <param name="game"> ArmaliaGame Object</param>
 /// <param name="levelManager">Level manager for this game.</param>
 public MapMaker(ArmaliaGame game, LevelManager levelManager)
 {
     this.game = game;
     this.levelManager = levelManager;
 }
Example #5
0
 public SplashScreen(ArmaliaGame game, ScreenManager manager, String splashFilename)
     : base(game, manager)
 {
     this.splashFilename = splashFilename;
 }