Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Bruce Sutherland
About this chapter
Cite this chapter
Sutherland, B. (2014). Using the STL in Text Adventure. In: Learn C++ for Game Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6458-3_19
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6458-3_19
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6457-6
Online ISBN: 978-1-4302-6458-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books