コード例 #1
0
        /// <summary>
        /// Performs an attack by the provided Attacking Card in the given direction
        /// </summary>
        /// <param name="direction"></param>
        /// <param name="attackingCard"></param>
        private void SecondaryAttack(Cardinal direction, BattleTile attackingCard)
        {
            //Check to see if any existing power token is activated (i.e. Rotate)
            if (attackingCard.ActiveToken == "ROTATE")
            {
            }

            //Determines whether the attack will be successful. If it is, call this method again with the next card

            //Capture/exchanges any counters
        }
コード例 #2
0
        /// <summary>
        /// Performs battle tile activity after user has selected the spot to place the tile.
        /// </summary>
        /// <param name="selectedTile"></param>
        private void PlayBattleTile(BattleTile selectedTile)
        {
            //Player selects spot to place tile

            //Player selects any battle tokens

            //Perform attack, or perform token

            //Finish up any remaining token actions (add counters?)

            //Check to see if the game is over

            //switch active player
        }
コード例 #3
0
        private void button_Next_Click(object sender, EventArgs e)
        {
            if (radio_Battle.Checked == true)
            {
                //

                BattleTile newcard = new BattleTile();


                battleTiles.Add(newcard);
            }
            else if (radio_Character.Checked == true)
            {
                //

                CharacterCard newcard = new CharacterCard();
                charCards.Add(newcard);
            }
        }
コード例 #4
0
 /// <summary>
 /// The active card performs an attack in all cardinal directions
 /// </summary>
 private void PerformAttack(BattleTile activeCard)
 {
     //Determine which directions are defeated
 }
コード例 #5
0
ファイル: PlayingField.cs プロジェクト: intrepidOlivia/Hitoya
 /// <summary>
 /// Places a battle tile in a slot.
 /// </summary>
 public static void PlaceTile(BattleTile tile, int x, int y)
 {
     Field[x, y].PlacedTile = tile;
 }
コード例 #6
0
 public static void PlaceTile(BattleTile placedCard, CardEdge adjacent)
 {
 }