<commit_before>"""Interactive map entities/players!

Note:
  Could even be something like a sign! Or the human player.

"""

from hypatia import dialog
from hypatia import sprites
from hypatia import constants
from hypatia import actor


class Player(actor.Actor):

    def __init__(self, walkabout=None):
        super(Player, self).__init__(walkabout)

    def talk(self, npcs, dialogbox):
        """Attempt to talk in current direction.

        """

        # get the current direction, check a bit in front with a rect
        # to talk to npc if collide
        facing = self.walkabout.direction

        if facing is constants.Direction.Up:
            disposition = (0, -1)
        elif facing is constants.Direction.Right:
            disposition = (1, 0)
        elif facing is constants.Direction.Down:<commit_msg>[Refactor] Remove unused imports from the player module<commit_after>"""Interactive map entities/players!

Note:
  Could even be something like a sign! Or the human player.

"""

from hypatia import constants
from hypatia import actor


class Player(actor.Actor):

    def __init__(self, walkabout=None):
        super(Player, self).__init__(walkabout)

    def talk(self, npcs, dialogbox):
        """Attempt to talk in current direction.

        """

        # get the current direction, check a bit in front with a rect
        # to talk to npc if collide
        facing = self.walkabout.direction

        if facing is constants.Direction.Up:
            disposition = (0, -1)
        elif facing is constants.Direction.Right:
            disposition = (1, 0)
        elif facing is constants.Direction.Down:
{'fraction_non_alphanumeric': 0.08053691275167785, 'fraction_numerical': 0.004881025015253203, 'mean_word_length': 2.6936936936936937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1500131', 'n_tokens_mistral': 457, 'n_tokens_neox': 440, 'n_words': 170}