예제 #1
0
    public void TileSelected(Tile tile)
    {
        if (_state != ControllerState.WaitingForSelection)
        {
            return;
        }
        if (selectedCharacter == null)
        {
            return;
        }
        if (selectedCharacter.Team != team)
        {
            return;
        }
        if (selectedCharacter.GetActionPoints() == 0)
        {
            return;
        }
        var moves = GridController.Singelton.GetRunedPath(selectedCharacter, selectedCharacter.currentTile, tile);

        for (var index = 0; index < moves.Count; index++)
        {
            var t = moves[index];
            RuneManager.Singelton.ExecuteRune(t);
        }
        _state = ControllerState.WaitingForActionToFinish;

        var runeSetAp = new RuneManager.SetActionPoint(selectedCharacter.GetActionPoints() - 1, selectedCharacter);

        RuneManager.Singelton.ExecuteRune(runeSetAp);

        var getInput = new RuneManager.WaitForSelection(this);

        RuneManager.Singelton.ExecuteRune(getInput);
    }
예제 #2
0
    public override void StartTurn()
    {
        _state = ControllerState.WaitingForSelection;
        for (int i = 0; i < crewMembers.Count;i++ )
        {
            var setAp = new RuneManager.SetActionPoint(3, crewMembers[i]);
            RuneManager.Singelton.ExecuteRune(setAp);
            crewMembers[i].SetActionPoints(3);
            crewMembers[i].OnStartTurn();
        }
        //        selectedCharacter = crewMembers[0];
           OnSelctionAction(crewMembers[0]);

        //    ConflictController.Instance.AddPulseMaterial(selectedCharacter.GetComponent<Renderer>());
    }
예제 #3
0
    public override void StartTurn()
    {
        _state = ControllerState.WaitingForSelection;
        for (int i = 0; i < crewMembers.Count; i++)
        {
            var setAp = new RuneManager.SetActionPoint(3, crewMembers[i]);
            RuneManager.Singelton.ExecuteRune(setAp);
            crewMembers[i].SetActionPoints(3);
            crewMembers[i].OnStartTurn();
        }
//        selectedCharacter = crewMembers[0];
        OnSelctionAction(crewMembers[0]);

        //    ConflictController.Instance.AddPulseMaterial(selectedCharacter.GetComponent<Renderer>());
    }
예제 #4
0
    public override void PreformAction(Entity entity)
    {
        for (int i = 0; i < protoEvents.Count; i++)
        {
            runes.Add(protoEvents[i].CreateRune(character, entity));
        }
        for (int i = 0; i < runes.Count; i++)
        {
            RuneManager.Singelton.ExecuteRune(runes[i]);
        }

        var runeSetAp = new RuneManager.SetActionPoint(character.GetActionPoints() - 1, character);

        RuneManager.Singelton.ExecuteRune(runeSetAp);
    }
예제 #5
0
    public override void PreformAction(Entity entity)
    {
        GridController.ResetGridColor();
        var runeSetAp = new RuneManager.SetActionPoint(character.GetActionPoints() - 1, character);
        RuneManager.Singelton.ExecuteRune(runeSetAp);

        var moves = GridController.Singelton.GetRunedPath(character, character.currentTile, entity as Tile);
        for(var index = 0;index < moves.Count;index++)
        {
            var t = moves[index];
            RuneManager.Singelton.ExecuteRune(t);
        }
        if(character.GetActionPoints() > 0)
        {
            var presentTiles = new RuneManager.PresentMoveTiles(character);
            RuneManager.Singelton.ExecuteRune(presentTiles);
        }
    }
예제 #6
0
    public override void PreformAction(Entity entity)
    {
        GridController.ResetGridColor();
        var runeSetAp = new RuneManager.SetActionPoint(character.GetActionPoints() - 1, character);

        RuneManager.Singelton.ExecuteRune(runeSetAp);

        var moves = GridController.Singelton.GetRunedPath(character, character.currentTile, entity as Tile);

        for (var index = 0; index < moves.Count; index++)
        {
            var t = moves[index];
            RuneManager.Singelton.ExecuteRune(t);
        }
        if (character.GetActionPoints() > 0)
        {
            var presentTiles = new RuneManager.PresentMoveTiles(character);
            RuneManager.Singelton.ExecuteRune(presentTiles);
        }
    }
예제 #7
0
    public void TileSelected(Tile tile)
    {
        if (_state != ControllerState.WaitingForSelection) return;
        if (selectedCharacter == null) return;
        if (selectedCharacter.Team != team) return;
        if (selectedCharacter.GetActionPoints() == 0) return;
        var moves = GridController.Singelton.GetRunedPath(selectedCharacter, selectedCharacter.currentTile, tile);
        for (var index = 0; index < moves.Count; index++)
        {
            var t = moves[index];
            RuneManager.Singelton.ExecuteRune(t);
        }
        _state = ControllerState.WaitingForActionToFinish;

        var runeSetAp = new RuneManager.SetActionPoint(selectedCharacter.GetActionPoints() - 1, selectedCharacter);
        RuneManager.Singelton.ExecuteRune(runeSetAp);

        var getInput = new RuneManager.WaitForSelection(this);
        RuneManager.Singelton.ExecuteRune(getInput);
    }
예제 #8
0
    public override void PreformAction(Entity entity)
    {
        for (int i = 0; i < protoEvents.Count; i++)
        {
            runes.Add(protoEvents[i].CreateRune(character, entity));
        }
        for (int i = 0; i < runes.Count; i++)
        {
            RuneManager.Singelton.ExecuteRune(runes[i]);
        }

        var runeSetAp = new RuneManager.SetActionPoint(character.GetActionPoints() - 1, character);
        RuneManager.Singelton.ExecuteRune(runeSetAp);
    }