commit 52888a86a3bc8aa4762d549fcb0ef5d9c0b08514
parent d187a7c54496419c9a584cbf9730b10ef63e7758
Author: Erik Letson <hmagellan@hmagellan.com>
Date: Fri, 22 Jan 2021 02:37:20 -0600
added base file
Diffstat:
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/base.py b/src/base.py
@@ -0,0 +1,28 @@
+import pygame
+from . import manager, entity
+from .constants import *
+
+###########
+# base.py #
+###########
+
+# This file contains:
+# 1. The BaseManager class, which controls entities in the base and the UI in base mode (e.g. cursor)
+# 2. Various entity subclasses used in base mode
+
+#################################
+# Section 1 - BaseManager class #
+#################################
+
+class BaseManager(manager.Manager):
+ """
+ BaseManager controls entities located at the base, as
+ well as the UI elements in base mode. It is somewhat
+ similar in function and scope to TurnManager, but for
+ base mode.
+ """
+
+ def __init__(self, game, bus, camera, name):
+
+ # Parent initialization
+ super().__init__(game, bus, camera, name)
diff --git a/src/piece.py b/src/piece.py
@@ -6,6 +6,8 @@ from .constants import *
# piece.py #
############
+# TODO: The ui elements controlled here should definitely be moved to TurnManager
+
# This file contains the following:
# 1. The PieceManager object, which manages pieces on the game board
# 2. The Piece entity child object, which represents a piece on the game board