Package games.stendhal.server.core.engine.db

Examples of games.stendhal.server.core.engine.db.StendhalKillLogDAO


      }

      logger.info(player.getName() + " is attacking " + victim.getName());
    }

    StendhalKillLogDAO killLog = DAORegister.get().get(StendhalKillLogDAO.class);
    new GameEvent(killLog.getEntityName(player), "attack", killLog.getEntityName(victim), killLog.entityToType(player), killLog.entityToType(victim)).raise();

    player.setTarget(victim);
    player.faceToward(victim);
    player.applyClientDirection(false);
    player.notifyWorldAboutChanges();
View Full Code Here


    // define additional DAOs
    DAORegister.get().register(CidDAO.class, new CidDAO());
    DAORegister.get().register(PostmanDAO.class, new PostmanDAO());
    DAORegister.get().register(StendhalBuddyDAO.class, new StendhalBuddyDAO());
    DAORegister.get().register(StendhalHallOfFameDAO.class, new StendhalHallOfFameDAO());
    DAORegister.get().register(StendhalKillLogDAO.class, new StendhalKillLogDAO ());
    DAORegister.get().register(StendhalNPCDAO.class, new StendhalNPCDAO());
    DAORegister.get().register(StendhalWebsiteDAO.class, new StendhalWebsiteDAO());
    DAORegister.get().register(AchievementDAO.class, new AchievementDAO());
    DAORegister.get().register(PendingAchievementDAO.class, new PendingAchievementDAO());
  }
View Full Code Here

   *            true iff this entity should be removed from the world. For
   *            almost everything remove is true, but not for the players, who
   *            are instead moved to afterlife ("reborn").
   */
  public void onDead(final Entity killer, final boolean remove) {
    StendhalKillLogDAO killLog = DAORegister.get().get(StendhalKillLogDAO.class);
    String killerName = killLog.getEntityName(killer);

    if (killer instanceof RPEntity) {
      new GameEvent(killerName, "killed", killLog.getEntityName(this), killLog.entityToType(killer), killLog.entityToType(this)).raise();
    }

    DBCommandQueue.get().enqueue(new LogKillEventCommand(this, killer));

    // Players are unique, so they should not get an article.
View Full Code Here

    this.frozenKiller = (Entity) killer.clone();
  }

  @Override
  public void execute(DBTransaction transaction) throws SQLException {
    StendhalKillLogDAO killLog = DAORegister.get().get(StendhalKillLogDAO.class);
    killLog.logKill(transaction, frozenKilled, frozenKiller);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.db.StendhalKillLogDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.