Class GateTool
java.lang.Object
com.csse3200.game.components.structures.tools.Tool
com.csse3200.game.components.structures.tools.PlacementTool
com.csse3200.game.components.structures.tools.GateTool
-
Field Summary
Fields inherited from class com.csse3200.game.components.structures.tools.PlacementTool
snapX, snapY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStructure(Entity player) Creates the structure to be placed.Methods inherited from class com.csse3200.game.components.structures.tools.PlacementTool
getSnapPosition, hasEnoughResources, interact, isPositionValid
-
Constructor Details
-
GateTool
Creates a new tool which allows the placing of structures with the given cost.- Parameters:
cost- - the cost of the entity being placed.
-
-
Method Details
-
createStructure
Description copied from class:PlacementToolCreates the structure to be placed. This must be implemented in subclasses to function.- Specified by:
createStructurein classPlacementTool- Parameters:
player- - the player placing the structure.- Returns:
- the structure to be placed.
-