Exemple #1
0
 public void DissapearMole()
 {
     if (state == PlagaState.MOLE)
     {
         state = PlagaState.FREE;
     }
 }
Exemple #2
0
 public void SmackToHole()
 {
     if (state == PlagaState.SMACKED_MOLE)
     {
         state = PlagaState.SMACKED_MOLE_HOLE;
     }
 }
Exemple #3
0
 public void AppearMole()
 {
     if (state == PlagaState.VEGGIE)
     {
         state = PlagaState.MOLE;
         timer = PlagasActivityModel.MOLE_TIME;
     }
 }
Exemple #4
0
 public PlagaTile()
 {
     state           = PlagaState.FREE;
     timer           = 0;
     timeToAppear    = 0;
     timeToMole      = 0;
     smackTimeToHole = 0;
 }
Exemple #5
0
 public void AppearVeggie()
 {
     if (state == PlagaState.TO_APPEAR_VEGGIE)
     {
         state      = PlagaState.VEGGIE;
         timeToMole = PlagasActivityModel.VEGETABLE_TO_MOLE;
     }
 }
Exemple #6
0
    public void SetTimeToAppear(int timeToAppear)
    {
        this.timeToAppear = timeToAppear;

        if (timeToAppear != 0)
        {
            state = PlagaState.TO_APPEAR_VEGGIE;
        }
    }
Exemple #7
0
 public bool IsCorrect()
 {
     if (state == PlagaState.MOLE)
     {
         state           = PlagaState.SMACKED_MOLE;
         smackTimeToHole = PlagasActivityModel.SMACKED_MOLE_TO_HOLE;
         return(true);
     }
     return(false);
 }
Exemple #8
0
 public void AppearInitVeggie()
 {
     state      = PlagaState.VEGGIE;
     timeToMole = PlagasActivityModel.VEGETABLE_TO_MOLE;
 }
Exemple #9
0
 public void SetState(PlagaState state)
 {
     this.state = state;
 }