hoshi10 / OpenSkyscraper

Open source tower simulation game inspired by SimTower, based on SDL, OpenGL and OpenAL. #opentower on freenode.net
https://github.com/fabianschuiki/OpenSkyscraper/wiki
1 stars 0 forks source link

'people' branch: Giving these people a brain #5

Open hoshi10 opened 11 years ago

hoshi10 commented 11 years ago

An experimental branch to rewrite the game logic for the people of the tower has been started. The idea is to abstract all decisions a person in the tower would make and put it into the person module (or subclasses).

The initial commit has some of the behaviour of the original Customer class (embedded within other building item classes) pulled into it's own class, with additional new logic. I would love to hear comments and feedback as to how things should proceed as we progress through this rewrite.

New logic added so far:

fabianschuiki commented 11 years ago

This sounds like a really good idea! I'll have a look at the code later this week when my coursework is out of the way.