going-rogue/roguebasin
Eryn Wells da3d30872b Add logging action handling in a tree-like fashion
These logs are available in the actions.tree logger. They'll print a helpful
list of actions and their results in a tree-like way.

For example:

```
2022-05-12 08:57:57 actions.tree: Processing Hero Actions
2022-05-12 08:57:57 actions.tree: |-> @[(x:4, y:6)][30/30]
2022-05-12 08:57:57 actions.tree: |   |-> BumpAction toward (δx:-1, δy:1) by @[(x:4, y:6)][30/30] => success=False done=False alternate=WalkAction[@]
2022-05-12 08:57:57 actions.tree: |   `-> WalkAction toward (δx:-1, δy:1) by @[(x:3, y:7)][30/30] => success=True done=True alternate=None
2022-05-12 08:57:57 actions.tree: Processing Entity Actions
2022-05-12 08:57:57 actions.tree: |-> Orc with 10/10 hp at (x:4, y:5)
2022-05-12 08:57:57 actions.tree: |   |-> BumpAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:4, y:5) => success=False done=False alternate=WalkAction[o]
2022-05-12 08:57:57 actions.tree: |   `-> WalkAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:3, y:6) => success=True done=True alternate=None
2022-05-12 08:57:57 actions.tree: |-> Orc with 10/10 hp at (x:5, y:5)
2022-05-12 08:57:57 actions.tree: |   |-> BumpAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:5, y:5) => success=False done=False alternate=WalkAction[o]
2022-05-12 08:57:57 actions.tree: |   `-> WalkAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:4, y:6) => success=True done=True alternate=None
```
2022-05-12 08:56:15 -07:00
..
__init__.py Doc comments and stuff 2022-05-07 11:56:55 -07:00
__main__.py Configure logging with logging_config.json 2022-05-11 07:52:35 -07:00
actions.py Move most of the basic actions logs to debug (probably just for now) 2022-05-12 08:55:22 -07:00
ai.py Implement a basic AI for HostileMonster 2022-05-08 23:38:48 -07:00
components.py Add a Fighter component that tracks hit points, attack power, defense, etc 2022-05-08 09:46:32 -07:00
engine.py Condense the declaration of engine.hero; add a FIXME 2022-05-12 08:49:46 -07:00
events.py Add logging action handling in a tree-like fashion 2022-05-12 08:56:15 -07:00
geometry.py Add Point.euclidean_distance_to() 2022-05-12 08:46:45 -07:00
items.py Add an Item type class and a Corpse item type 2022-05-08 23:36:13 -07:00
map.py Remove the shbang from map.py 2022-05-07 17:44:30 -07:00
monsters.py Move Monster to the object module 2022-05-08 09:48:05 -07:00
object.py Remove a newline 2022-05-11 08:08:47 -07:00
tile.py