diff options
Diffstat (limited to 'entities/location.py')
-rw-r--r-- | entities/location.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/entities/location.py b/entities/location.py index 9636c3b..cd1ca01 100644 --- a/entities/location.py +++ b/entities/location.py @@ -2,7 +2,12 @@ from entities.basic_entity import BasicEntity class Location(BasicEntity): - def __init__(self, name, types, name_in_langs): + def __init__(self, name, types_of_place, name_in_langs): self.name = name - self.types = types + self.types_of_place = types_of_place self.name_in_langs = name_in_langs + + def print_entity(self): + print("Name = " + self.name) + print("Name in langs = " + str(self.name_in_langs)) + print("Types = " + str(self.types_of_place)) |