Author | Message |
---|---|
dvictor4
Posts: 34
|
Posted 20:10 Feb 08, 2017 |
Hi what does the Prof. mean by
I do not understand where I should get the data from to instantiate a MonsterAttack object. Can someone clarify for me?
|
jhurley
Posts: 207
|
Posted 07:47 Feb 09, 2017 |
This is one should be called from the driver. This is so that you can add test data to the attack monitor without using the GUI. |
nickdrakesi
Posts: 11
|
Posted 15:27 Feb 09, 2017 |
I asked John about this last night, he is basically saying, create a hard coded monster attack that you can use for testing your program. If you didn't have this, you would have to type in the ID, name, etc, over and over again. |
JCA08
Posts: 12
|
Posted 15:23 Feb 11, 2017 |
Should the MonsterAttack class include a list? Last edited by JCA08 at
19:17 Feb 12, 2017.
|
dvictor4
Posts: 34
|
Posted 18:48 Feb 13, 2017 |
Just to clarify we define the method in the AttackMonitor class then call it from the MonsterAttackDriver class with the hard coded data as the arguments? Does this mean the menu should not have an option to create a MonsterAttack using method parameters? Last edited by dvictor4 at
18:49 Feb 13, 2017.
|
agoyal3
Posts: 4
|
Posted 20:35 Feb 13, 2017 |
In monster attack class, do we have to initialize the values for the variables in both constructor and setter method? |
agoyal3
Posts: 4
|
Posted 13:37 Feb 14, 2017 |
In which class do we have to define main class? In monsterattack method or attackmonitor method? |
dvictor4
Posts: 34
|
Posted 16:51 Feb 14, 2017 |
If you mean the main method, it has to go in the MonsterAttackDriver class because that is where we instantiate an Attack Monitor object. |