|
|
@ -25,11 +25,16 @@ public class Cell { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void triggerFruit() { |
|
|
|
public void triggerCherry() { |
|
|
|
this.type = "empty"; |
|
|
|
map.gameManager.score += 505; |
|
|
|
} |
|
|
|
|
|
|
|
public void triggerStrawberry() { |
|
|
|
this.type = "empty"; |
|
|
|
map.gameManager.score += 405; |
|
|
|
} |
|
|
|
|
|
|
|
public void triggerItem() { |
|
|
|
if(type.equals("dot")) { |
|
|
|
triggerDot(); |
|
|
@ -38,10 +43,14 @@ public class Cell { |
|
|
|
triggerPill(); |
|
|
|
} |
|
|
|
else if(type.equals("cherry")) { |
|
|
|
triggerFruit(); |
|
|
|
triggerCherry(); |
|
|
|
} |
|
|
|
else if(type.equals("strawberry")) { |
|
|
|
triggerStrawberry(); |
|
|
|
} |
|
|
|
else { |
|
|
|
//System.out.println("cell contains no item!"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|