Add Mob class extending Entity

This commit is contained in:
Jared Miller 2026-02-07 20:31:26 -05:00
parent 3cba2cdb7a
commit 028dcb51b8
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -14,3 +14,11 @@ class Entity:
async def send(self, message: str) -> None:
"""Send a message to this entity. Base implementation is a no-op."""
pass
@dataclass
class Mob(Entity):
"""Represents a non-player character (NPC) in the world."""
description: str = ""
alive: bool = True