Examples of Party


Examples of fr.raversoft.yllisanSkies.data.Party

    public final static boolean ECRAN_PLEIN_ECRAN = false;
    public final static boolean ECRAN_DEBUG = false;

    public Jeu() throws SlickException, FileNotFoundException, IOException {
        super(ECRAN_TITRE);
        equipe = new Party();
        ecran = new Screen(ECRAN_LARGEUR, ECRAN_HAUTEUR, ECRAN_PLEIN_ECRAN, ECRAN_DEBUG);
        gameContainer = new AppGameContainer(this, ecran.getLargeur(), ecran.getHauteur(), ecran.estPleinEcran());
        menu = new Menu(this, true);
        temps = new Temps();
        sons = new Sounds();
View Full Code Here

Examples of fr.raversoft.yllisanSkies.data.Party

        return party;
    }

    public MainGame(String name) throws SlickException, IOException, FullPartyException {
        super(name);
        party = new Party();
        screen = new Screen(ECRAN_LARGEUR, ECRAN_HAUTEUR, ECRAN_PLEIN_ECRAN, ECRAN_DEBUG);
        time = new Temps();
        sounds = new Sounds();
        music = new MusicList();
        Hero.creerHeros();
View Full Code Here

Examples of lineage2.gameserver.model.Party

      if (!player.isInParty())
      {
        player.sendPacket(Msg.YOU_ARE_NOT_CURRENTLY_IN_A_PARTY_SO_YOU_CANNOT_ENTER);
        return;
      }
      Party party = player.getParty();
      if (!party.isLeader(player))
      {
        player.sendPacket(Msg.ONLY_A_PARTY_LEADER_CAN_TRY_TO_ENTER);
        return;
      }
      for (Player p : party.getPartyMembers())
      {
        if (!this.isInRange(p, 500))
        {
          player.sendPacket(Msg.ITS_TOO_FAR_FROM_THE_NPC_TO_WORK);
          return;
        }
      }
      for (int i = 0; i < medals.length; i++)
      {
        if (!hasItem(party, medals[i]))
        {
          player.sendMessage("In order to enter the Anomic Foundry your party should be carrying all 5 medals of Tully");
          return;
        }
      }
      party.Teleport(new Location(25512, 247240, -2656));
    }
    else
    {
      super.onBypassFeedback(player, command);
    }
View Full Code Here

Examples of net.sf.chellow.billing.Party

      }
    } else if (roleCode.equals(UserRole.EDITOR)) {
      return;
    } else if (roleCode.equals(UserRole.PARTY_VIEWER)) {
      if (method.equals(HttpMethod.GET) || method.equals(HttpMethod.HEAD)) {
        Party party = user.getParty();
        char marketRoleCode = party.getRole().getCode();
        if (marketRoleCode == MarketRole.HHDC) {
          Long hhdcContractId = inv.getLong("hhdc-contract-id");
          if (!inv.isValid()) {
            throw new ForbiddenException(
                "Need the parameter hhdc-contract-id.");
          }
          HhdcContract hhdcContract = HhdcContract
              .getHhdcContract(hhdcContractId);
          if (!hhdcContract.getParty().equals(party)) {
            throw new ForbiddenException(
                "The party associated with the contract you're trying to view doesn't match your party.");
          }
          if ((pathInfo + "?" + inv.getRequest().getQueryString())
              .startsWith("/reports/37/output/?hhdc-contract-id="
                  + hhdcContract.getId())) {
            return;
          }
        } else if (marketRoleCode == MarketRole.SUPPLIER) {
          if (pathInfo.startsWith("/supplier-contracts/"
              + party.getId())) {
            return;
          }
        }
      }
    }
View Full Code Here

Examples of net.sf.chellow.billing.Party

      String userRoleCode = GeneralImport.addField(csvElement,
          "User Role Code", values, 3);
      UserRole userRole = UserRole.getUserRole(userRoleCode);
      String participantCode = GeneralImport.addField(csvElement,
          "Participant Code", values, 4);
      Party party = null;
      if (participantCode.trim().length() != 0) {
        String marketRoleCode = GeneralImport.addField(csvElement,
            "Market Role Code", values, 5);
        party = Party.getParty(participantCode, marketRoleCode);
      }
View Full Code Here

Examples of net.sf.chellow.billing.Party

      Long userRoleId = inv.getLong("user-role-id");
      UserRole userRole = UserRole.getUserRole(userRoleId);
      if (!inv.isValid()) {
        throw new UserException(document());
      }
      Party party = null;
      if (userRole.getCode().equals(UserRole.PARTY_VIEWER)) {
        Long partyId = inv.getLong("party-id");

        party = Party.getParty(partyId);
      }
View Full Code Here

Examples of net.sf.chellow.billing.Party

    }
   
    UserRole role = UserRole.getUserRole(userRoleId);
    try {
      Hiber.setReadWrite();
      Party party = null;
      if (role.getCode().equals(UserRole.PARTY_VIEWER)) {
        Long partyId = inv.getLong("party-id");
        if (!inv.isValid()) {
          throw new UserException(document());
        }
View Full Code Here

Examples of org.dddlib.organisation.domain.Party

        application.createOrganization(organization, parent, date);
    }

    @Override
    public void terminateParty(Long partyId, Date date) {
        Party party = application.getEntity(Party.class, partyId);
        application.terminateParty(party, date);
    }
View Full Code Here

Examples of org.dddlib.organisation.domain.Party

     */
    @Ignore
    @Test
    public void testTerminateParty() {
        System.out.println("terminateParty");
        Party party = mock(Party.class);
        Date date = DateUtils.date(2012, 1, 1);
        instance.terminateParty(party, date);
        verify(party).terminate(date);
    }
View Full Code Here

Examples of org.dddlib.organisation.domain.Party

     */
    @Ignore
    @Test
    public void testTerminateParty() {
        System.out.println("terminateParty");
        Party party = null;
        Date date = null;
        instance.terminateParty(party, date);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }
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.