Examples of Couple


Examples of it.eng.spagobi.utilities.objects.Couple

   
    IModelEntity entity = getParent();
    if(entity.getParent() != null) {
      if(entity.getParent() instanceof ModelViewEntity){
        fieldName = getName();
        return new Couple (fieldName, entity);
      }
      fieldName = toLowerCase( entity.getName() );
      entity = entity.getParent();
    }
    while(entity.getParent() != null) {
      if(entity.getParent() instanceof ModelViewEntity){
        if(!fieldName.equalsIgnoreCase("")) fieldName +=  ".";
        fieldName = fieldName+getName();
        return new Couple (fieldName, entity);
      }
      fieldName = toLowerCase( entity.getName() ) + "." + fieldName;
      entity = entity.getParent();
    }   
    if(!fieldName.equalsIgnoreCase("")) fieldName +=  ".";
    fieldName += getName();
   
    return new Couple (fieldName, null);
  }
View Full Code Here

Examples of l2p.gameserver.model.entity.Couple

    {
      activeChar.sendMessage(new CustomMessage("scripts.commands.voiced.Wedding.Disengaged", activeChar));
    }
    activeChar.setMaried(false);
    activeChar.setPartnerId(0);
    Couple couple = CoupleManager.getInstance().getCouple(activeChar.getCoupleId());
    couple.divorce();
    couple = null;
    L2Player partner = L2ObjectsStorage.getPlayer(_partnerId);
    if(partner != null)
    {
      partner.setPartnerId(0);
View Full Code Here

Examples of l2p.gameserver.model.entity.Couple

    }
    else if(command.startsWith("AcceptWedding"))
    {
      // accept the wedding request
      player.setMaryAccepted(true);
      Couple couple = CoupleManager.getInstance().getCouple(player.getCoupleId());
      couple.marry();
      //messages to the couple
      player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2WeddingManagerMessage", player));
      player.setMaried(true);
      player.setMaryRequest(false);
      ptarget.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2WeddingManagerMessage", ptarget));
View Full Code Here

Examples of l2p.gameserver.model.entity.Couple

      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("SELECT * FROM couples ORDER BY id");
      rs = statement.executeQuery();
      while(rs.next())
      {
        Couple c = new Couple(rs.getInt("id"));
        c.setPlayer1Id(rs.getInt("player1Id"));
        c.setPlayer2Id(rs.getInt("player2Id"));
        c.setMaried(rs.getBoolean("maried"));
        c.setAffiancedDate(rs.getLong("affiancedDate"));
        c.setWeddingDate(rs.getLong("weddingDate"));
        getCouples().add(c);
      }
      _log.info("Loaded: " + getCouples().size() + " couples(s)");
    }
    catch(Exception e)
View Full Code Here

Examples of l2p.gameserver.model.entity.Couple

  {
    if(player1 != null && player2 != null)
    {
      if(player1.getPartnerId() == 0 && player2.getPartnerId() == 0)
      {
        getCouples().add(new Couple(player1, player2));
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.Couple

    {
      activeChar.sendMessage(new CustomMessage("voicedcommandhandlers.Wedding.Disengaged", activeChar));
    }
    activeChar.setMaried(false);
    activeChar.setPartnerId(0);
    Couple couple = CoupleManager.getInstance().getCouple(activeChar.getCoupleId());
    couple.divorce();
    couple = null;
    Player partner = GameObjectsStorage.getPlayer(_partnerId);
    if (partner != null)
    {
      partner.setPartnerId(0);
View Full Code Here

Examples of lineage2.gameserver.model.entity.Couple

      con = DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("SELECT * FROM couples ORDER BY id");
      rs = statement.executeQuery();
      while (rs.next())
      {
        Couple c = new Couple(rs.getInt("id"));
        c.setPlayer1Id(rs.getInt("player1Id"));
        c.setPlayer2Id(rs.getInt("player2Id"));
        c.setMaried(rs.getBoolean("maried"));
        c.setAffiancedDate(rs.getLong("affiancedDate"));
        c.setWeddingDate(rs.getLong("weddingDate"));
        getCouples().add(c);
      }
      _log.info("Loaded: " + getCouples().size() + " couples(s)");
    }
    catch (Exception e)
View Full Code Here

Examples of lineage2.gameserver.model.entity.Couple

  {
    if ((player1 != null) && (player2 != null))
    {
      if ((player1.getPartnerId() == 0) && (player2.getPartnerId() == 0))
      {
        getCouples().add(new Couple(player1, player2));
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.Couple

      return;
    }
    else if (command.startsWith("AcceptWedding"))
    {
      player.setMaryAccepted(true);
      Couple couple = CoupleManager.getInstance().getCouple(player.getCoupleId());
      couple.marry();
      player.sendMessage(new CustomMessage("lineage2.gameserver.model.instances.L2WeddingManagerMessage", player));
      player.setMaried(true);
      player.setMaryRequest(false);
      ptarget.sendMessage(new CustomMessage("lineage2.gameserver.model.instances.L2WeddingManagerMessage", ptarget));
      ptarget.setMaried(true);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.entity.Couple

            statement = con.prepareStatement("Select id from mods_wedding order by id");
            rs = statement.executeQuery();

            while (rs.next())
            {
                getCouples().add(new Couple(rs.getInt("id")));
            }

            statement.close();

            _log.info("Loaded: " + getCouples().size() + " couples(s)");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.