From a1938e5683a3650ef5246f45499d2b7387f278c8 Mon Sep 17 00:00:00 2001 From: matixezor Date: Sat, 10 Apr 2021 12:11:43 +0200 Subject: [PATCH] add node class --- src/Node.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/Node.py diff --git a/src/Node.py b/src/Node.py new file mode 100644 index 0000000..d72150e --- /dev/null +++ b/src/Node.py @@ -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