Class StendhalKillLogDAO

java.lang.Object
games.stendhal.server.core.engine.db.StendhalKillLogDAO

public class StendhalKillLogDAO extends Object
database access to the kill log
Author:
hendrik
  • Constructor Details

    • StendhalKillLogDAO

      public StendhalKillLogDAO()
  • Method Details

    • logKill

      public void logKill(DBTransaction transaction, Entity killed, Killer killer, Timestamp timestamp) throws SQLException
      Logs a kill.
      Parameters:
      transaction - transaction
      killed - killed entity
      killer - killer
      Throws:
      SQLException - in case of an database error
    • entityToType

      public String entityToType(Killer entity)
      Creates a one letter type string based on the class of the entity.
      Parameters:
      entity - Entity
      Returns:
      P for players, C for creatures, E for other entities