Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public class Tower {
  2. private int damage = 1;
  3. private boolean inRange = false;
  4. private int range = 2;
  5. private Position towerPosition;
  6.  
  7.  
  8. //TODO
  9. public Tower(int col,int row){
  10. towerPosition = new Position(row,col);
  11. }
  12.  
  13. public int getRange(){
  14. return range;
  15. }
  16. public int getDamage(){
  17. return damage;
  18. }
  19. public Position getTowerPosition(){
  20. return towerPosition;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement