Game Development Reference
In-Depth Information
Fig. 10.1
Structure of a
Cannon
instance
Fig. 10.2
Structure of a
Cannon
instance that inherits from
ThreeColorGameObject
These member variables belong to
Cannon
and not to
ThreeColorGameObject
.We
can now depict the structure of the version of a
Cannon
object that inherits from
ThreeColorGameObject
, see Fig.
10.2
.