|
|
@ -35,6 +35,11 @@ public class Cell { |
|
|
|
map.gameManager.score += 405; |
|
|
|
} |
|
|
|
|
|
|
|
public void triggerOrange() { |
|
|
|
this.type = "empty"; |
|
|
|
map.gameManager.score += 305; |
|
|
|
} |
|
|
|
|
|
|
|
public void triggerItem() { |
|
|
|
if(type.equals("dot")) { |
|
|
|
triggerDot(); |
|
|
@ -48,6 +53,9 @@ public class Cell { |
|
|
|
else if(type.equals("strawberry")) { |
|
|
|
triggerStrawberry(); |
|
|
|
} |
|
|
|
else if(type.equals("orange")) { |
|
|
|
triggerStrawberry(); |
|
|
|
} |
|
|
|
else { |
|
|
|
//System.out.println("cell contains no item!"); |
|
|
|
} |
|
|
|