Question: use inteelliJ software Task 8 Define a stage class that can contain one Grid object and many Character objects. There must be three separate characters,

 use inteelliJ software Task 8 Define a stage class that can

use inteelliJ software

Task 8 Define a stage class that can contain one Grid object and many Character objects. There must be three separate characters, each a subclass of a character interface and each must have its own paint method. The paint method must take a Graphics parameter and draw the character on that graphic. Have the paint method specified in the character interface and have each subclass define it. Since character s are drawing themselves, they need to know where they are on the screen so each will have a cell field (that is set in the constructor) indicating where on the grid they are. Have the program start with 1 grid and 3 characters: . Sheep (drawn white) . Wolf (drawn red) Shepherd (drawn green)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!