Class Event

    • Constructor Summary

      Constructors 
      Constructor Description
      Event​(Game game)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      Game getGame()
      Returns the Game in which this Event was created.
      int hashCode()  
      void run()
      Calls Game.runEvent(Event) on the Game object of this Event.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Event

        public Event​(Game game)
    • Method Detail

      • getGame

        public final Game getGame()
        Returns the Game in which this Event was created.
        Returns:
        The instance of the Game
      • run

        public final void run()
        Calls Game.runEvent(Event) on the Game object of this Event.
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object