Ejemplo n.º 1
0
 public void use()
 {
     if (stateManager.currentHatItem == Item.NONE)
     {
         // Attempt to use counter.
         Item counterItem = counterManager.getItemOnSpecificCounter(stateManager.chefCounterPosition);
         emptyPlayerAction(counterItem);
     }
     else
     {
         // Attempt to set thing down.
         Item counterItem = counterManager.getItemOnSpecificCounter(stateManager.chefCounterPosition);
         setDownItemPlayerAction(counterItem);
     }
 }