Fixed imports

This commit is contained in:
Marcin Kostrzewski 2020-05-14 14:54:11 +02:00
parent a8ef08b3ef
commit 1610f9c0da
5 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,5 @@
from src.entities.Entity import Entity from src.entities.Entity import Entity
from entities.Enums import Rotations, Movement from src.entities.Enums import Rotations, Movement
from src.AI.AStarNode import AStarNode from src.AI.AStarNode import AStarNode
from queue import PriorityQueue from queue import PriorityQueue

View File

@ -2,7 +2,7 @@ from pathlib import Path
import pygame import pygame
from entities.Enums import Rotations, Movement from src.entities.Enums import Rotations, Movement
class Entity(pygame.sprite.Sprite): class Entity(pygame.sprite.Sprite):
@ -216,7 +216,7 @@ class Entity(pygame.sprite.Sprite):
""" """
if self.movementTarget is None: if self.movementTarget is None:
self.movementTarget = target self.movementTarget = target
from AI.AutomaticMovement import aStar from src.AI.AutomaticMovement import aStar
self.movesList = aStar(self, self.movementTarget, map) self.movesList = aStar(self, self.movementTarget, map)
if not self.movesList: if not self.movesList:
self.movementTarget = None self.movementTarget = None

View File

@ -2,7 +2,7 @@ import random
import pygame import pygame
from entities.Enums import Rotations, StatisticNames, Movement from src.entities.Enums import Rotations, StatisticNames, Movement
from src.entities.Entity import Entity from src.entities.Entity import Entity
from src.entities.Statistics import Statistics from src.entities.Statistics import Statistics

View File

@ -3,9 +3,7 @@ from time import sleep
import pygame import pygame
from src.entities.Interactable import Interactable from src.entities.Enums import Movement
from src.entities.Pickupable import Pickupable
from entities.Enums import Movement
class EventManager: class EventManager:

View File

@ -3,7 +3,7 @@ from pathlib import Path
import pygame import pygame
from entities.Enums import StatisticNames from src.entities.Enums import StatisticNames
from src.entities.Statistics import Statistics from src.entities.Statistics import Statistics
from src.ui.UiBar import UiBar from src.ui.UiBar import UiBar
from src.ui.UiConsole import UiConsole from src.ui.UiConsole import UiConsole