Game Development Reference
In-Depth Information
A good modern compiler will inline functions that it believes will benefit from the performance
boost automatically and the other two keywords can be a sign of code that might be better written
in a different way. The extern keyword is particularly rare in modern code as it generally goes
against the aim of object-oriented code to keep data and implementations behind interfaces using
encapsulation.
The next chapter will introduce you to inheritance. Inheritance allows us to create hierarchies of
classes and is particularly important for game development. The Text Adventure game you are
developing will become much more interesting in the next chapter as you create rooms, items, and
commands that allow a player to interact with the game world.
Search WWH ::




Custom Search