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