Checkpoint initial implementation

This commit is contained in:
Andrew Miner
2025-10-06 17:41:18 -06:00
parent 773e0a3d85
commit a8b6e6b15e
106 changed files with 3012 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
from tungston.core.ecology.biometrait import BiomeTrait
# Class ############################################################################################
class Location:
"""
Where a creature is most likely to be encountered.
"""
def __init__(self, name):
self.name = name
def __str__(self) -> str:
return self.name
def __repr__(self) -> str:
return f"Location<{self.name}>"
# Constants ########################################################################################
OUTSIDE = Location("outside")
CAVE = Location("cave")
WATER = Location("water")
ALL = [OUTSIDE, CAVE, WATER]