ITI 1121 Midterm: ITI 1121 University of Ottawa 2006 Midterm-en

24 views22 pages

Document Summary

The company electronic abstractions (ea) has hired you to work on the development of their latest game. The action is set in the ancient city of zenda, in the heart of the kingdom of ruthenia. You will be working on modelling the players (creatures). Given the above hierarchy and the following information: all players of the game have a method double attack() that returns a value representing the strength of the attack. Player is an interface declaring the method double attack(): an abstractplayer de nes the characteristics that are common to all the creatures. All the creatures have a name (a character. String) as well as a life meter (a double ranging from 0. 0 to 100. 0). The initial value of the life meter is 50. 0: an uldra is a creature (player) that carries a bottle lled with poison (a double value in the range 0. 0 .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents