forked from nus-cs2113-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from tannerlie/branch-enemy-display-jar-bug
Fix enemy display issue on Jar
- Loading branch information
Showing
17 changed files
with
176 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ checkstyle { | |
run{ | ||
enableAssertions = true | ||
standardInput = System.in | ||
enableAssertions = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package InteractableEntity.enemies; | ||
|
||
import InteractableEntity.Enemy; | ||
import static filereader.filepath.EnemiesDesignFilePath.CENTAUR_PATH; | ||
|
||
public class Centaur extends Enemy { | ||
protected int height; | ||
|
||
public Centaur(int dmg, int def, int hp, int xCoordinate, int yCoordinate, int exp, int money) { | ||
super(dmg, def, hp, xCoordinate, yCoordinate, exp, money); | ||
this.height = 12; | ||
this.name = "Centaur"; | ||
this.filePath = CENTAUR_PATH; | ||
} | ||
|
||
@Override | ||
public int getHeight() { | ||
return height; | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public void setHeight(int height) { | ||
this.height = height; | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package InteractableEntity.enemies; | ||
|
||
import InteractableEntity.Enemy; | ||
import static filereader.filepath.EnemiesDesignFilePath.DEMON_PATH; | ||
|
||
public class Demon extends Enemy { | ||
|
||
public Demon(int dmg, int def, int hp, int xCoordinate, int yCoordinate, int exp, int money) { | ||
super(dmg, def, hp, xCoordinate, yCoordinate, exp, money); | ||
this.name = "Demon"; | ||
this.filePath = DEMON_PATH; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package InteractableEntity.enemies; | ||
|
||
import InteractableEntity.Enemy; | ||
import static filereader.filepath.EnemiesDesignFilePath.DRAGON_PATH; | ||
|
||
public class Dragon extends Enemy { | ||
|
||
public Dragon(int dmg, int def, int hp, int xCoordinate, int yCoordinate, int exp, int money) { | ||
super(dmg, def, hp, xCoordinate, yCoordinate, exp, money); | ||
this.name = "Dragon"; | ||
this.filePath = DRAGON_PATH; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package InteractableEntity.enemies; | ||
|
||
import InteractableEntity.Enemy; | ||
import static filereader.filepath.EnemiesDesignFilePath.GOBLIN_PATH; | ||
|
||
public class Goblin extends Enemy { | ||
protected int height; | ||
|
||
public Goblin(int dmg, int def, int hp, int xCoordinate, int yCoordinate, int exp, int money) { | ||
super(dmg, def, hp, xCoordinate, yCoordinate, exp, money); | ||
this.height = 12; | ||
this.name = "Goblin"; | ||
this.filePath = GOBLIN_PATH; | ||
} | ||
|
||
@Override | ||
public int getHeight() { | ||
return height; | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public void setHeight(int height) { | ||
this.height = height; | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package InteractableEntity.enemies; | ||
|
||
import InteractableEntity.Enemy; | ||
import static filereader.filepath.EnemiesDesignFilePath.GRYPHON_PATH; | ||
|
||
public class Gryphon extends Enemy { | ||
|
||
public Gryphon(int dmg, int def, int hp, int xCoordinate, int yCoordinate, int exp, int money) { | ||
super(dmg, def, hp, xCoordinate, yCoordinate, exp, money); | ||
this.name = "Gryphon"; | ||
this.filePath = GRYPHON_PATH; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | ||
| | | ||
| , , /\ /\ | | ||
| /( /\ )\ _\ \_/ /_ | | ||
| |\_||_/| < \_ _/ > | | ||
| \______/ \|0 0|/ | | ||
| _\/_ _(_ ^ _)_ | | ||
| ( () ) /`\|V"""V|/`\ | | ||
| {} \ \_____/ / | | ||
| () /\ )=( /\ | | ||
| {} / \_/\=/\_/ \ | | ||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | ||
| / ) | | ||
| ( |\ | | ||
| /| \\ | | ||
| // \\ | | ||
| /// \| | | ||
| /( \ )\ | | ||
| \\ \_ //) | | ||
| \\ :\__ /// | | ||
| \\ ) // \ | | ||
| \\: / // |/ | | ||
| \\ / \ // \ | | ||
| /) \ ___..-' (| \_| | | ||
| // / _.' \ \ \ | | ||
| /| \ \________ \ | / | | ||
| (| _ _ __/ '-. ) /.' | | ||
| \\ . '-.__ \_ / / \ | | ||
| \\_'. > --._ '. \ / / / | | ||
| \ \ \ \ \ .' /.' | | ||
| \ \ '._ / \ ) / .' | | | ||
| \ \_ \_ | .'_/ __/ | | ||
| \ \ \_ | / / _/ \_ | | ||
| \ \ / _.' / / \ | | ||
| \ | /.' / .' '-,_ | | ||
| \ \ .' _.'_/ \ | | ||
| /\ /\ ) ___( /_.' \ | | | ||
| | _\__// \ (.' _/ | | | | ||
| \/_ __ /--'` , __/ / | | ||
| (o ) /o) \ '. : \___.-'_/ \__/ | | ||
| /:/: , ) : ( /_.'__/-'|_ _ / | | ||
| /:/: __/\ > __,_.----.__\ / (/(/(/ | | ||
| (_(,_/V .'/--' _/ __/ | / | | ||
| VvvV //` _.-' _.' \ \ | | ||
| n_n// (((/->/ | / | | ||
| '--' ~=' \ | | | ||
| | |_,,, | | ||
| \ \ / | | ||
| '.__) | | ||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | ||
| ______ | | ||
| ______,---'__,---' | | ||
| _,-'---_---__,---' | | ||
| /_ (, ---____', | | ||
| / ',, `, ,-' | | ||
| ;/) ,',,_/,' | | ||
| | /\ ,.'//\ | | ||
| `-` \ ,,' `. | | ||
| `', ,-- `. | | ||
| '/ / | `, _ | | ||
| //'',.\_ .\\ ,{==>- | | ||
| __// __;_`- \ `;.__,;' | | ||
| ((,--,) (((,------; `--' | | ||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = |