Exemplo n.º 1
0
 public void SelectMonsterATK(BattlePhase _battlephase)
 {
     this.m_Ai_logics.SelectATK(_battlephase,PlayScene.Player, this);
 }
Exemplo n.º 2
0
 public void SelectMonsterATK(BattlePhase _battlephase)
 {
     this.m_Ai_logics.SelectATK(_battlephase, PlayScene.Player, this);
 }
Exemplo n.º 3
0
        public override void Init(Game _game)
        {
            base.Init(_game);
            background = new Sprite(Game.Content, "fie_burn");
            background.Position = new Vector2(230, 0);
            background.Depth = 0.0f;

            Player = new Player(_game.Content);
            Player.Init(Game.Content);

            Computer = new Computer();
            Computer.Init(Game.Content);

            switch (first)
            {
                case ePlayerId.PLAYER:
                    Player.IsTurn = true;
                    Computer.IsTurn = false;
                    break;
                case ePlayerId.COMPUTER:
                    Player.IsTurn = false;
                    Computer.IsTurn = true;
                    break;
                default:
                    break;
            }

            YNDialog = new YesNoDialog(_game.Content, "String");
            YNDialog.Position = new Vector2(
                x: this.Game.Window.ClientBounds.Center.X - YNDialog.Sprite.Bound.Width / 2,
                y: this.Game.Window.ClientBounds.Center.Y - YNDialog.Sprite.Bound.Height / 2);

            phaseSelector = new PhaseSelector(_game.Content);
            phaseSelector.DrawPhaseButton.ButtonEvent += new Action(DrawPhaseButton_ButtonEvent);
            phaseSelector.StandbyButton.ButtonEvent += new Action(StandbyButton_ButtonEvent);
            phaseSelector.Main1Button.ButtonEvent +=new Action(Main1Button_ButtonEvent);
            phaseSelector.EndPhaseButton.ButtonEvent += new Action(EndPhaseButton_ButtonEvent);
            phaseSelector.Main2Button.ButtonEvent += new Action(Main2Button_ButtonEvent);
            phaseSelector.BattleButton.ButtonEvent += new Action(BattleButton_ButtonEvent);

            _rasterizerState = new RasterizerState() { ScissorTestEnable = true };
            DetailSideBar = new DetailSideBar(_game.Content);
            battlePhase = new BattlePhase(_game.Content);
        }