The base class Actor doesn't declare a (optional) actor attribute. The ActionWithActor has a non-optional actor attribute. This makes the type checker happier, and means we can have some actions that don't have actors. |
||
|---|---|---|
| .. | ||
| actions | ||
| interface | ||
| map | ||
| __init__.py | ||
| __main__.py | ||
| ai.py | ||
| components.py | ||
| configuration.py | ||
| engine.py | ||
| events.py | ||
| geometry.py | ||
| items.py | ||
| log.py | ||
| messages.py | ||
| monsters.py | ||
| object.py | ||