Class Cavallo

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Runnable, Accessible, SwingConstants

public class Cavallo extends JLabel implements Runnable
This class represents a Horse extending JLabel
See Also:
  • Constructor Details

    • Cavallo

      public Cavallo()
      This constructor prepares a Horse setting an image and position and another parameter
  • Method Details

    • run

      public void run()
      This is a method for thread that execute clinically chance the image for simulating running to end
      Specified by:
      run in interface Runnable
    • speed

      public void speed()
      This method generates a custom speed for horse