public void DissapearMole() { if (state == PlagaState.MOLE) { state = PlagaState.FREE; } }
public void SmackToHole() { if (state == PlagaState.SMACKED_MOLE) { state = PlagaState.SMACKED_MOLE_HOLE; } }
public void AppearMole() { if (state == PlagaState.VEGGIE) { state = PlagaState.MOLE; timer = PlagasActivityModel.MOLE_TIME; } }
public PlagaTile() { state = PlagaState.FREE; timer = 0; timeToAppear = 0; timeToMole = 0; smackTimeToHole = 0; }
public void AppearVeggie() { if (state == PlagaState.TO_APPEAR_VEGGIE) { state = PlagaState.VEGGIE; timeToMole = PlagasActivityModel.VEGETABLE_TO_MOLE; } }
public void SetTimeToAppear(int timeToAppear) { this.timeToAppear = timeToAppear; if (timeToAppear != 0) { state = PlagaState.TO_APPEAR_VEGGIE; } }
public bool IsCorrect() { if (state == PlagaState.MOLE) { state = PlagaState.SMACKED_MOLE; smackTimeToHole = PlagasActivityModel.SMACKED_MOLE_TO_HOLE; return(true); } return(false); }
public void AppearInitVeggie() { state = PlagaState.VEGGIE; timeToMole = PlagasActivityModel.VEGETABLE_TO_MOLE; }
public void SetState(PlagaState state) { this.state = state; }