Class GameEvent

java.lang.Object
marauroa.server.game.rp.GameEvent

public class GameEvent extends Object
a gameEvent for logging
  • Constructor Details

    • GameEvent

      public GameEvent(String source, String event, String... params)
      create a GameEvent object for logging
      Parameters:
      source - source of the event (e. g. player name)
      event - name of event
      params - parameters
    • GameEvent

      public GameEvent(String source, String event, Timestamp timestamp, String... params)
      create a GameEvent object for logging
      Parameters:
      source - source of the event (e. g. player name)
      event - name of event
      timestamp - timestamp
      params - parameters
  • Method Details

    • getSource

      public String getSource()
      gets the source
      Returns:
      source
    • getEvent

      public String getEvent()
      gets the event name
      Returns:
      event name
    • getTimestamp

      public Timestamp getTimestamp()
      gets the timestamp
      Returns:
      timestamp
    • getParams

      public String[] getParams()
      gets the parameters
      Returns:
      parameters