about summary refs log tree commit diff
path: root/src/Xanthous/Entities/Raws.hs
AgeCommit message (Collapse)AuthorFilesLines
2019-11-29 Use menus for combat and picking up itemsGriffin Smith1-1/+1
Refactor a bunch of stuff around to allow for polymorphically surfacing an EntityChar for all entities, and use this to write a generic `entityMenu` function, which generates a menu from the chars of a list of entities - and use that to fully implement (removing `undefined`) menus for both attacking and picking things up when there are multiple entities on the relevant tile.
2019-09-28 Implement the start of creature AIGriffin Smith1-0/+1
Add a Brain class, which determines for an entity the set of moves it makes every step of the game, and begin to implement that for gormlaks. The idea here is that every step of the game, a gormlak will move towards the furthest-away wall it can see.
2019-09-19 Add items and inventoryGriffin Smith1-4/+34
Add a new "Item" entity, which pulls from the previously-existent ItemType raw, and add a "PickUp" command which takes the (currently *only*) item off the ground and puts it into the inventory.
2019-09-02 Add raws, loaded statically from a folderGriffin Smith1-0/+28
Add raw types with support for both creatures and items, loaded statically from a "raws" folder just like in the Rust version.