Add position for GameObject
This commit is contained in:
parent
73ceab624b
commit
c78b85b05a
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ class GameObject:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Инициализация объекта."""
|
"""Инициализация объекта."""
|
||||||
self.position_ = []
|
self.position_ = []
|
||||||
|
|
||||||
|
@property
|
||||||
|
def position(self):
|
||||||
|
return self.position_
|
||||||
|
|
||||||
def generate_random_position(self) -> list[int]:
|
def generate_random_position(self) -> list[int]:
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue