private void EnemyMinion_Drop(object sender, DragEventArgs e) //拖拽随从攻击(Minion_Drop) { if (draggingType == "PlayerMinion") { //(e.Data as Grid).DataContext MinionManager.MinionAttack(draggedGrid.DataContext as Minion, (sender as Grid).DataContext as Minion); UpdateAllMinionGrid(); } }
private void EnemyHeroGrid_Drop(object sender, DragEventArgs e) //拖拽随从攻击(EnemyHero_Drop)& 拖拽施放法术(EnemyHero_Drop) { if (draggingType == "PlayerMinion") { //(e.Data as Grid).DataContext MinionManager.MinionAttack(draggedGrid, (sender as Grid)); UpdateAllMinionGrid(); UpdateHerosHealth(); } if (draggingType == "SpellCard") { } }
private void TurnStateCheck() { Debug.Log("Changed to: " + currentTurn); switch (currentTurn) { case Turns.PickCommandCard: break; case Turns.PlayCommandLine: break; case Turns.MinionMove: minionMan.MinionMove(); break; case Turns.MinionSpawn: minionMan.MinionSpawn(); break; case Turns.MinionAttack: minionMan.MinionAttack(); break; } }