Fixed movement of multiple entities.

Changed std::unique_ptr<Entity> to std::shared_ptr<Entity>.
Fixed pathfinding away from targets

TODO :
 - Fix oscillation around destination
 - Fix fleeing from adjacent target
 - Win conditions
 - GUI
This commit is contained in:
trotFunky 2019-06-10 18:46:37 +02:00
parent 5169948b6f
commit bf27bbeeb9
6 changed files with 33 additions and 21 deletions

View file

@ -5,10 +5,20 @@ Project Maat is the codename of my C++ course "mini-project" based on the quote
This game is aimed to be a puzzle game in which the player sets different laws for the world and the people within it as to control what happens after hitting "play" and achieve the level's goal. I was inspired both by [The Incredible Machine](https://en.wikipedia.org/wiki/The_Incredible_Machine_(video_game)) and its successors and by a much more recent game : [Baba is you](https://en.wikipedia.org/wiki/Baba_Is_You).
## Dependencies
The following libraries must be installed on your system or findable by CMake to be able to build:
- SFML
- TGui
- PugiXML
- GTest
## Structure
![UML Diagram](UML_Class_Diagram.png)
The class diagram omits most constructors and getters.
## TODO
- [x] Level
@ -25,6 +35,7 @@ This game is aimed to be a puzzle game in which the player sets different laws f
- [x] Interaction with entities
- [ ] Parsing of rules and creation of subsequent decorators
- [x] Find optimal target for pathfinding
- [ ] Other rules (Waiting...)
- [ ] Graphics
- [x] Scene rendering
- [ ] UI
@ -33,6 +44,7 @@ This game is aimed to be a puzzle game in which the player sets different laws f
- [ ] Transition from starting to running state and vice-versa
- [ ] Entity behaviour evolution
- [x] Rule application
- [ ] Saving state through serialization ?
- [ ] Win condition
- [ ] ~~Saving state through serialization ?~~
- [ ] UML
- [ ] Unit tests