add node class
This commit is contained in:
parent
5c5e301d6e
commit
a1938e5683
11
src/Node.py
Normal file
11
src/Node.py
Normal 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
|
Loading…
Reference in New Issue
Block a user