Class StendhalKillLogDAO
java.lang.Object
games.stendhal.server.core.engine.db.StendhalKillLogDAO
database access to the kill log
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentityToType(Killer entity) Creates a one letter type string based on the class of the entity.voidlogKill(DBTransaction transaction, Entity killed, Killer killer, Timestamp timestamp) Logs a kill.
-
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- transactionkilled- killed entitykiller- killer- Throws:
SQLException- in case of an database error
-
entityToType
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
-