Using the STL in Text Adventure

  • Bruce Sutherland


So far you have seen how a game can be built using classes, member variables, and C-style arrays. In this chapter you will see how you can use some of the STL classes covered in this part of the book to simplify the code you have been creating. This chapter uses polymorphism to store pointers to base classes in our STL containers. If you need a recap on polymorphism and how it is used, you should read over Chapter 11.


Static Option Public Entity Game World Room Class Game Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Bruce Sutherland 2014

Authors and Affiliations

  • Bruce Sutherland
    • 1
  1. 1.VICAustralia

Personalised recommendations