-
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.
merged team-5--Turret-Selection into team-2-sound
- Loading branch information
Showing
22 changed files
with
119 additions
and
76 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
51 changes: 32 additions & 19 deletions
51
source/core/src/main/com/csse3200/game/screens/TowerType.java
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,35 +1,48 @@ | ||
package com.csse3200.game.screens; | ||
|
||
public enum TowerType { | ||
WEAPON("images/towers/turret_deployed.png", "Weapon Tower", | ||
"The Weapon Tower is a simple and basic turret that fires rapid shots at enemies dealing damage over time."), | ||
TNT("images/towers/turret_deployed.png", "TNT Tower", | ||
"The TNT Tower launches explosive projectiles, dealing area damage to groups of enemies."), | ||
DROID("images/towers/turret_deployed.png", "Droid Tower", | ||
"Droid Towers deploy robotic helpers that assist in combat and provide support to nearby turrets."), | ||
WALL("images/towers/turret_deployed.png", "Wall Tower", | ||
"The Wall Tower creates barriers to block enemy paths, slowing down their progress."), | ||
FIRE("images/towers/turret_deployed.png", "Fire Tower", | ||
"The Fire Tower emits flames, causing damage over time to enemies caught in its fiery radius."), | ||
STUN("images/towers/turret_deployed.png", "Stun Tower", | ||
"The Stun Tower releases electric shocks that temporarily immobilize and damage enemies."), | ||
INCOME("images/towers/turret_deployed.png", "Income Tower", | ||
"The Income Tower generates additional in-game currency over time."); | ||
|
||
private final String imagePath; | ||
WEAPON("Weapon Tower", "The Weapon Tower is a simple and basic turret that fires rapid shots at enemies dealing damage over time.", | ||
0, "0", "images/turret-select/Weapon-Tower-Default.png", "images/turret-select/Weapon-Tower-Clicked.png"), | ||
TNT("TNT Tower", "The TNT Tower launches explosive projectiles, dealing area damage to groups of enemies.", | ||
1, "0", "images/turret-select/tnt-tower-default.png", "images/turret-select/tnt-tower-clicked.png"), | ||
DROID("Droid Tower", "Droid Towers deploy robotic helpers that assist in combat and provide support to nearby turrets.", | ||
2, "0", "images/turret-select/droid-tower-default.png", "images/turret-select/droid-tower-clicked.png"), | ||
WALL("Wall Tower", "The Wall Tower creates barriers to block enemy paths, slowing down their progress.", | ||
3, "100", "images/turret-select/wall-tower-default.png", "images/turret-select/wall-tower-clicked.png"), | ||
FIRE("Fire Tower", "The Fire Tower emits flames, causing damage over time to enemies caught in its fiery radius.", | ||
4, "0", "images/turret-select/fire-tower-default.png", "images/turret-select/fire-tower-clicked.png"), | ||
STUN("Stun Tower", "The Stun Tower releases electric shocks that temporarily immobilize and damage enemies.", | ||
5, "1000", "images/turret-select/stun-tower-default.png", "images/turret-select/stun-tower-clicked.png"), | ||
INCOME("Income Tower", "The Income Tower generates additional in-game currency over time.", | ||
5, "0", "images/turret-select/mine-tower-default.png", "images/turret-select/mine-tower-clicked.png"); | ||
|
||
private final String towerName; | ||
private final String description; | ||
private final int id; | ||
private final String cost; | ||
private final String defaultImage; | ||
private final String clickedImage; | ||
|
||
|
||
TowerType(String imagePath, String towerName, String description) { | ||
this.imagePath = imagePath; | ||
TowerType(String towerName, String description, int id, String cost, String defaultImage, String clickedImage) { | ||
this.towerName = towerName; | ||
this.description = description; | ||
this.id = id; | ||
this.cost = cost; | ||
this.defaultImage = defaultImage; | ||
this.clickedImage = clickedImage; | ||
} | ||
|
||
public String getImagePath() { return imagePath; } | ||
public int getID() { return id; } | ||
|
||
public String getTowerName() { return towerName; } | ||
|
||
public String getDescription() { return description; } | ||
|
||
public String getPrice() { return cost; } | ||
|
||
public String getDefaultImage() {return defaultImage;} | ||
|
||
public String getClickedImage() {return clickedImage;} | ||
|
||
} |
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