Interface DrinkButtonListener


public interface DrinkButtonListener

Defines the interface for any class that listens for button events.

Author:
Bill Kuker

Method Summary
 void buttonPressed(int slot)
          This method is called by the DrinkMachine class when a button is depressed.
 void buttonReleased(int slot)
          This method is called by the DrinkMachine class when a button is released.
 

Method Detail

buttonPressed

public void buttonPressed(int slot)
This method is called by the DrinkMachine class when a button is depressed.

Parameters:
slot - The slot which represents the button pressed.

buttonReleased

public void buttonReleased(int slot)
This method is called by the DrinkMachine class when a button is released.

Parameters:
slot - The slot which represents the button released.