Nethack style computer game (C++) |
Written by Sam Moffatt
|
Sunday, 09 August 2009 |
As a part of my studies of Object Orientated Programming in C++, I was required to build a Nethack style computer game. The aim of the game was to navigate through a dungeon picking up powerups and attacking creatures before saving the princess.
I took the project and designed it using useful features from the Boost library such as lambda functions and functors. I used the lambda functions to simplify the output of some complicated operators using simple iterators and I utilised functors to handle object registration and notification of events that occurred, such as detecting collisions or processing actions (e.g. use of weapons).
|