コード例 #1
0
        public GameWindow()
        {
            InitializeComponent();
            playerMoveController = kernel.Get <PlayerMoveController>();

            mainSceneAreaController = kernel.Get <MainSceneAreaController>();
            mainSceneAreaController.Initialize(playerMoveController);

            collisionGfx = kernel.Get <PlayerCollisionGfx>();
            collisionGfx.Initialize(collisionGraphicsPictureBox);

            playerFallGfx = kernel.Get <PlayerFallGfx>();
            playerFallGfx.Initialize(PlayerFallPictureBox);

            playerWinGfx = kernel.Get <PlayerWinGfx>();
            playerWinGfx.Initialize(WinnerPictureBox);

            playerMoveDirectionSet = kernel.Get <PlayerMoveDirectionSet>();
            playerMoveDirectionSet.Initialize(player);

            leftDirectionController = kernel.Get <LeftDirectionController>();
            leftDirectionController.Initialize(scene);

            rightDirectionController = kernel.Get <RightDirectionController>();
            rightDirectionController.Initialize(scene);

            playerSideController            = kernel.Get <PlayerSideController>();
            playerOnMovableObjectController = kernel.Get <PlayerOnMovableObjectController>();
            playerBackground = kernel.Get <PlayerBackground>();
            gameController   = kernel.Get <GameController>();
            gameSetup        = kernel.Get <GameSetup>();
            checkClass       = kernel.Get <CheckClass>();

            gameSetup.SetPlayerToStart(player, scene);
            SetMovableObjectsToStart();

            MovableObjectCollectionInitializer();
            FinishBoxCollectionInitializer();

            EventRegister();
        }
コード例 #2
0
 public PlayerOnMovableObjectController()
 {
     leftDirectionController  = kernel.Get <LeftDirectionController>();
     rightDirectionController = kernel.Get <RightDirectionController>();
     checkClass = kernel.Get <CheckClass>();
 }
コード例 #3
0
 public GameController()
 {
     checkClass = kernel.Get <CheckClass>();
 }