Skip to content

Conversation

@TamamLawic
Copy link
Contributor

No description provided.

}

public void describeSelf(){
System.out.println("My name is" + this.getName());
Copy link
Contributor

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)){
Copy link
Contributor

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();
Copy link
Contributor

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;
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants