예제 #1
0
    private void _on_Map_FinishedDisplaying()
    {
        if (_phase == nameof(GamePhase.HUMAN_PLAYER_START) || _phase == nameof(GamePhase.ZOMBIE_PLAYER_START))
        {
            var selectedNode = Map.GetSelectedNode();

            if (selectedNode is Player player)
            {
                var playerPosition = player.GetGridPosition();
                var playerWeapon   = _cardManager.GetPlayerWeapon(player.GetInstanceId());

                var movePositions = _movementManager.GetMovePositions(playerPosition, player.GetDirection(), player.AP,
                                                                      player.GetPlayerNumber(), playerWeapon.Range, playerWeapon.Wide);

                _movementManager.ShowMovePoints(movePositions);
            }
        }
    }