

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 8
click for more info
Not enough gems
Cost: 6 gems
1: Inheritance
incomplete
2: When to Inherit
incomplete
3: Inheritance Hierarchy
incomplete
4: Inheritance Quiz
incomplete
5: Multiple Children
incomplete
6: Adding a Wizard
incomplete
7: Wide Not Deep
incomplete
8: Dragons
incomplete
9: Dragons Fight
incomplete
10: Inheritance Practice
incomplete
11: Inheritance Practice
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
In "Age of Dragons" there are Orcs, Humans, Goblins, Dragons, etc. All of those different creatures are called "units". The only thing specific to a unit is that it has a position on the game map (x and y coordinates) and a name.
Dragons are a specific type of unit. They can breathe fire in a large area dealing damage to any units touched by its fiery blaze.
Our game map is just a Cartesian plane.
The example above uses a __fire_range of 1 centered at (1, 1).
Complete the following methods: