dozer_model library
The model library describes the whole game concept. It is used for the game logic and it contains all the game entities as specific classes. Every level level consists of a Level instance with its corresponding game entities saved as instances of Entity.
Classes
- Barrier
- Model Representation of a Barrier. This is used to build obstacles for the player. Upon hitting the Barrier, the Dozer can't move in this direction any further.
- Brick
- Model Representation of a Brick. This is used to build obstacles for the player. Upon hitting the Brick, the score will be decreased.
- CollisionChecker
- This class is used to check collisions between Entity's and the Dozer
- Coordinates
- A class which simply represents a horizontal and vertical coordinate. The class is primarily used for the DozerTail and could be easily extended.
- Dot
- The model representation of the dot's used to increase the dozer length and score
- DoubleUp
- The model representation of the Double Up's used to give the player the ability to increase his score by double the amount of the dot's values. It extends of the PowerUp class.
- Dozer
- The model representation of the Dozer, the game's main character. It extends the class Entity.
- DozerTail
- The DozerTail is handled like a normal Entity. It is seperate from the Dozer class because its much more simple and the tail does not have to be checked for collisions
- Drill
- The model representation of the Drill's used to give the player the ability to break through bricks without decreasing his score/length. It extends of the PowerUp class.
- Entity
- The model representation of all the game entities displayed on the screen when the user plays the game.
- Level
- The model representation of a Level
- PowerUp
- The PowerUp's are like dots but give the player other functionality. Implementations of this abstract class are for instance the DoubleUp Drill SlowDown
- SlowDown
- The model representation of the Slowdown's used to give the player the ability to move the dozer slower through the virtual earth. It extends of the PowerUp class.