Class TurretTool
java.lang.Object
com.csse3200.game.components.structures.tools.Tool
com.csse3200.game.components.structures.tools.PlacementTool
com.csse3200.game.components.structures.tools.TurretTool
A tool which allows the player to place a turret.
- 
Field Summary
Fields inherited from class com.csse3200.game.components.structures.tools.PlacementTool
snapX, snapY - 
Constructor Summary
ConstructorsConstructorDescriptionTurretTool(com.badlogic.gdx.utils.ObjectMap<String, Integer> cost) Creates a new turret tool with the given cost. - 
Method Summary
Methods inherited from class com.csse3200.game.components.structures.tools.PlacementTool
getSnapPosition, hasEnoughResources, interact, isPositionValid 
- 
Constructor Details
- 
TurretTool
Creates a new turret tool with the given cost.- Parameters:
 cost- - the cost of a turret.
 
 - 
 - 
Method Details
- 
createStructure
Creates a new turret.- Specified by:
 createStructurein classPlacementTool- Parameters:
 player- - the player creating the turret.- Returns:
 - a new turret.
 
 
 -