6.5 Overview of This App’s Classes
This app consists of eight classes:
MainActivity
(theActivity
subclass; Section 6.6)—Hosts theMainActivityFragment
.MainActivityFragment
(Section 6.7)—Displays theCannonView
.GameElement
(Section 6.8)—The superclass for items that move up and down (Blocker
andTarget
) or across (Cannonball
) the screen.Blocker
(Section 6.9)—Represents a blocker, which makes destroying targets more challenging.Target
(Section 6.10)—Represents a target that can be destroyed by a cannonball.Cannon
(Section 6.11)—Represents the cannon, which fires a cannonball each time the user touches the screen.Cannonball
(Section 6.12)—Represents a cannonball that the cannon fires when the user touches the screen.CannonView
(Section ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.