-
Notifications
You must be signed in to change notification settings - Fork 0
Sophie's Character #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| public void describeSelf(){ | ||
| System.out.println("My name is" + this.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of character are you? What color is your flannel?
|
|
||
|
|
||
| for(int i=0; i< potentialTargets.size(); i++){ | ||
| if (potentialTargets.get(i).getHealth() > mostHealth && this != potentialTargets.get(i)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you format this file using Ctrl+Alt+L?
|
|
||
| for(int i=0; i< potentialTargets.size(); i++){ | ||
| if (potentialTargets.get(i).getHealth() > mostHealth && this != potentialTargets.get(i)){ | ||
| mostHealth = potentialTargets.get(i).getHealth(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have potentialTargets.get(i) 3 times. Can you put this in a variable and use it?
| * Created by Sophie on 12/6/2016. | ||
| */ | ||
| public class LumberJack extends Character{ | ||
| private String flannelColor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want extra credit, you could add some more fields
No description provided.