Rules are not template anymore (it was dumb)

Entities are now managed with unique_ptr to allow polymorphism (and good memory management)
Rules can be added via the Level object
Fixed Rule::findTarget not caring about targetType

TODO : Find why pathfinding (unlikely) or findTarget (most likely) is broken
This commit is contained in:
trotFunky 2019-06-10 04:04:03 +02:00
parent 4ab83f1124
commit c94fc5a0be
7 changed files with 221 additions and 193 deletions

View file

@ -15,11 +15,11 @@ This game is aimed to be a puzzle game in which the player sets different laws f
- [x] Structure
- [x] Parsing from XML
- [x] A*
- [ ] Entities
- [x] Entities
- [x] Structure
- [x] Parsing from XML
- [x] Moving
- [ ] Decorators (Rules)
- [x] Decorators (Rules)
- [ ] Rules
- [x] Creation
- [x] Interaction with entities
@ -32,7 +32,7 @@ This game is aimed to be a puzzle game in which the player sets different laws f
- [ ] Gameloop
- [ ] Transition from starting to running state and vice-versa
- [ ] Entity behaviour evolution
- [ ] Rule application
- [x] Rule application
- [ ] Saving state through serialization ?
- [ ] UML
- [ ] Unit tests