add node class

This commit is contained in:
matixezor 2021-04-10 12:11:43 +02:00
parent 5c5e301d6e
commit a1938e5683

11
src/Node.py Normal file
View File

@ -0,0 +1,11 @@
from __future__ import annotations
from pygame import event
class Node:
def __init__(self, x: int, y: int, parent: Node = None, action: event = None):
self.x = x
self.y = y
self.parent = parent
self.action = action