Пример #1
0
    void actionPlayerRunning()
    {
        //listen to input handlers and verify
        player.showIndicator();
        validInput = player.listenInput();

        UnitCastIndicator.ShowIndicators();

        foreach (Unit unit in list_live_units)
        {
            if (unit.IsDead())
            {
                list_dead_units.Add(unit);
            }
        }
        //We'll animate the death of the enemies
        foreach (Unit unit in list_dead_units)
        {
            list_live_units.Remove(unit);
            unit.death_tick();
            if (!unit.FinishedAnimation)
            {
                IsAnimationDone = false;
            }
        }
        list_dead_units = new List <Unit>();
    }
Пример #2
0
 public void showIndicator()
 {
     spellIndicator.setSpellIndicator(new int[2] {
         Map_position_x, Map_position_y
     },
                                      new int[2] {
         GameTools.Mouse.Pos_x, GameTools.Mouse.Pos_z
     },
                                      MainSpell);
     PlayerCastIndicator.ShowIndicators();
 }