Sam Moffatt

Home arrow Portfolio arrow Student Projects arrow Nethack style computer game (C++)
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).

< Prev   Next >
© 2017 Pasamio.Id.Au - Sam Moffatt
Joomla! is Free Software released under the GNU/GPL License.