@ -17,11 +17,13 @@ public class Cell {
}
public void triggerPill() {
this.type = "empty";
//todo: code
public void triggerFruit() {
map.gameManager.score += 505;
public void triggerItem() {
@ -38,5 +40,4 @@ public class Cell {
System.out.println("cell contains no item!");
@ -59,4 +59,8 @@ public class GameManager {
return false;
public void updatePlayerCell() {
map.GetCell(player.position).triggerItem();
@ -24,6 +24,7 @@ public class Player {
if(!newPosIsWall) {
position = newPosition;
gameManager.updatePlayerCell();
public void processInput(char inputchar) {