-
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.
Updated TowerType() which "basic" descriptions of each turret which i…
…s then displayed under each image
- Loading branch information
Showing
2 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
36 changes: 22 additions & 14 deletions
36
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,27 +1,35 @@ | ||
package com.csse3200.game.screens; | ||
|
||
public enum TowerType { | ||
WEAPON("images/towers/turret_deployed.png", "Weapon Tower"), | ||
TNT("images/towers/turret_deployed.png", "TNT Tower"), | ||
DROID("images/towers/turret_deployed.png", "Droid Tower"), | ||
WALL("images/towers/turret_deployed.png", "Wall Tower"), | ||
FIRE("images/towers/turret_deployed.png", "Fire Tower"), | ||
STUN("images/towers/turret_deployed.png", "Stun Tower"), | ||
INCOME("images/towers/turret_deployed.png", "Income Tower"); | ||
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; | ||
private final String towerName; | ||
private final String description; | ||
|
||
TowerType(String imagePath, String towerName) { | ||
TowerType(String imagePath, String towerName, String description) { | ||
this.imagePath = imagePath; | ||
this.towerName = towerName; | ||
this.description = description; | ||
} | ||
|
||
public String getImagePath() { | ||
return imagePath; | ||
} | ||
public String getImagePath() { return imagePath; } | ||
|
||
public String getTowerName() { return towerName; } | ||
|
||
public String getDescription() { return description; } | ||
|
||
public String getTowerName() { | ||
return towerName; | ||
} | ||
} |
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