aboutsummaryrefslogtreecommitdiff
path: root/bin/world.py
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commitd53a4216c3219dc94cd45789142a2f28b5e0e1f7 (patch)
tree8921d48553bbb59646f5371fa088a48c8aa71b50 /bin/world.py
parent0a03015960e99290cb8efe8321dc312a2c1a0a39 (diff)
Format tweaks to Python files [#30]
Diffstat (limited to 'bin/world.py')
-rw-r--r--bin/world.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/world.py b/bin/world.py
index 15cdd21..31674f2 100644
--- a/bin/world.py
+++ b/bin/world.py
@@ -6,11 +6,12 @@ Email: paul.t.oliver.design@gmail.com
This module should be considered an extension of the 'printer' module. It takes
care of getting a pre-redered image from Salis and post-processing it in order
-to print it into the curses screen. It also keeps track of user cntrollable
+to print it into the curses screen. It also keeps track of user controllable
rendering parameters (position and zoom).
"""
import curses
+
from ctypes import c_uint8, cast, POINTER
@@ -147,6 +148,11 @@ class World:
if self.__is_world_editable():
self.__show_ip = not self.__show_ip
+
+ ###############################
+ # Private methods
+ ###############################
+
def __set_world_colors(self):
""" Define color pairs for rendering the world. Each color has a
special meaning, referring to the selected process IP, SP and memory