|
@ -40,6 +40,11 @@ public class Cell { |
|
|
map.gameManager.score += 305; |
|
|
map.gameManager.score += 305; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void triggerApple() { |
|
|
|
|
|
this.type = "empty"; |
|
|
|
|
|
map.gameManager.score += 205; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void triggerItem() { |
|
|
public void triggerItem() { |
|
|
if(type.equals("dot")) { |
|
|
if(type.equals("dot")) { |
|
|
triggerDot(); |
|
|
triggerDot(); |
|
@ -54,7 +59,10 @@ public class Cell { |
|
|
triggerStrawberry(); |
|
|
triggerStrawberry(); |
|
|
} |
|
|
} |
|
|
else if(type.equals("orange")) { |
|
|
else if(type.equals("orange")) { |
|
|
triggerStrawberry(); |
|
|
|
|
|
|
|
|
triggerOrange(); |
|
|
|
|
|
} |
|
|
|
|
|
else if(type.equals("apple")) { |
|
|
|
|
|
triggerApple(); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
//System.out.println("cell contains no item!"); |
|
|
//System.out.println("cell contains no item!"); |
|
|