Package org.moparscape.msc.gs.model.snapshot

Examples of org.moparscape.msc.gs.model.snapshot.Chatlog


              2);
          return;
        }
        ArrayList<String> temp = new ArrayList<String>();
        temp.add(DataConversions.hashToUsername(friend));
        world.addEntryToSnapshots(new Chatlog(player.getUsername(),
            "(PM) " + k, temp));

        loginSender.sendPM(user, friend, player.isPMod(), data);
      } catch (NegativeArraySizeException e) {
        player.destroy(false);
View Full Code Here


      List<Player> recievers = sender.getViewArea().getPlayersInView();
      ArrayList<String> recieverUsernames = new ArrayList<String>();
      for (Player p : recievers)
        recieverUsernames.add(p.getUsername());

      world.addEntryToSnapshots(new Chatlog(sender.getUsername(), k,
          recieverUsernames));
      for (Player recipient : recievers) {
        if (sender.getIndex() == recipient.getIndex()
            || !recipient.loggedIn()) {
          continue;
View Full Code Here

    Iterator<Snapshot> i = Instance.getWorld().getSnapshots()
        .descendingIterator();
    while (i.hasNext()) {
      Snapshot s = i.next();
      if (s instanceof Chatlog) {
        Chatlog cl = (Chatlog) s;
        if (cl.getRecievers().contains(a) || cl.getOwner().equals(a)) {
          chatlog.append((cl.getTimestamp() / 1000) + " <"
              + cl.getOwner() + "> " + cl.getMessage() + "\n");
        }
      } else if (s instanceof Activity) {
        Activity ac = (Activity) s;
        if (ac.getOwner().equals(f)) {
          snapshot_from.append((ac.getTimestamp() / 1000) + " "
View Full Code Here

    Iterator<Snapshot> i = Instance.getWorld().getSnapshots()
        .descendingIterator();
    while (i.hasNext()) {
      Snapshot s = i.next();
      if (s instanceof Chatlog) {
        Chatlog cl = (Chatlog) s;
        if (cl.getRecievers().contains(username)
            || cl.getOwner().equals(username)) {
          data.append((cl.getTimestamp() / 1000) + " <"
              + cl.getOwner() + "> " + cl.getMessage() + "\n");
        }
      } else if (s instanceof Activity) {
        Activity ac = (Activity) s;
        if (ac.getOwner().equals(username)) {
          data.append((ac.getTimestamp() / 1000) + " "
View Full Code Here

TOP

Related Classes of org.moparscape.msc.gs.model.snapshot.Chatlog

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.