コード例 #1
0
        public GameClient()
        {
            DebugCards.init();

            frameController = new FrameController();

            frameTable      = new FrameTable(Vector2.Zero);
            frameHand       = new FrameHand(Vector2.Zero);
            frameBid        = new FrameBid(Vector2.Zero);
            frameScoreboard = new FrameScoreboard(Vector2.Zero);
            playerIndicator = new PlayerIndicator(Vector2.Zero);
            frameEndgame    = new FrameEndgame(Vector2.Zero);
            frameController.addFrame(frameHand, Arranger.staticPoint(0f, 1f), true);
            frameController.addFrame(frameTable, Arranger.staticPoint(0f, -1f), false);
            frameController.addFrame(frameBid, Arranger.staticPoint(1f, 0f), false);
            frameController.addFrame(frameScoreboard, Vector2.Zero, false);
            frameController.addFrame(playerIndicator, Arranger.staticPoint(-1f, 0f), false);
            frameController.addFrame(frameEndgame, Arranger.staticPoint(0f, 0f), false);

            parallax = new ParallaxBackground(Vector2.Zero);
            frameHand.injectParallax(parallax);

            playerHand = frameHand.hand;
        }
コード例 #2
0
ファイル: FrameHand.cs プロジェクト: liangyee/Wizard
 public void injectParallax(ParallaxBackground parallax)
 {
     this.parallax = parallax;
 }