Esempio n. 1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            // Frame rate is 30 fps by default for Windows Phone.
            TargetElapsedTime = TimeSpan.FromTicks(333333);

            // Extend battery life under lock.
            InactiveSleepTime = TimeSpan.FromSeconds(1);

            var houseLevel = new LevelHouse(this);
            var room1 = new LevelRoom1_Bedroom(this, houseLevel);
            var room2 = new LevelRoom2_FriendsRoom1(this, houseLevel);
            var room3 = new LevelRoom3_FriendsRoom2(this, houseLevel);
            var room4 = new LevelRoom4_Bathroom(this, houseLevel);
            var room5 = new LevelRoom5_LivingRoom(this, houseLevel);
            var room6 = new LevelRoom6_Hall(this, houseLevel);
            var room7 = new LevelRoom7_DiningRoom(this, houseLevel);
            var room8 = new LevelRoom8_Kitchen(this, houseLevel);

            ChangeState(houseLevel);

            houseLevel.setRooms(room1, room2, room3, room4, room5, room6, room7, room8);
        }
 public LevelRoom1_Bedroom(Game game, LevelHouse house)
     : base(game)
 {
     // TODO: Construct any child components here
     this.house = house;
 }
 public LevelRoom3_FriendsRoom2(Game game, LevelHouse house)
     : base(game)
 {
     // TODO: Construct any child components here
     this.house = house;
 }