subject

Make 2 monster subclasses: Dragon and ghosts, both of which inherit all of the properties of the Monster class. Both should have their "type" attribute updated to ‘dragon’ and ‘ghost’ respectively. Dragon and ghosts have the ability to level up! Every time a dragon gains 10 exp all of its attacks gain +1 damage. For Example, at 30 exp a dragon's attack will have each +3 damage total. This does NOT include any new attacks learned after gaining exp. For Ghosts, every time a Ghost gains 10exp it gains +5 to its max_hp and therefore current_hp. In order to implement this, change the win_fight and lose_fight methods within each subclass to account for these changes. There is no need to change the Monster class or the monster_fight function.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
You know the right answer?
Make 2 monster subclasses: Dragon and ghosts, both of which inherit all of the properties of the Mon...
Questions
question
Chemistry, 15.04.2020 00:03