Package marauroa.common.game

Examples of marauroa.common.game.RPSlot


   * @param cslot
   *            The changes slot.
   */
  protected void fireChangedAdded(final RPObject object, final RPSlot cslot) {
    final String slotName = cslot.getName();
    RPSlot slot;

    /*
     * Find the original slot entry (if any)
     */
    if (object.hasSlot(slotName)) {
      slot = object.getSlot(slotName);
    } else {
      slot = null;
    }

    /*
     * Walk the changes
     */
    for (final RPObject schanges : cslot) {
      final RPObject.ID id = schanges.getID();

      if ((slot != null) && slot.has(id)) {
        final RPObject sobject = slot.get(id);

        listener.onSlotChangedAdded(object, slotName, sobject, schanges);

       
          userListener.onSlotChangedAdded(object, slotName, sobject,
View Full Code Here


    final String slotName = cslot.getName();

    /*
     * Find the original slot entry
     */
    final RPSlot slot = object.getSlot(slotName);

    /*
     * Walk the changes
     */
    for (final RPObject schanges : cslot) {
      final RPObject sobject = slot.get(schanges.getID());

      if (sobject == null) {
        // This happens when a child object deleted itself
        logger.debug("Unable to find existing: " + schanges);
        continue;
View Full Code Here

      RPObject node = object;

      while (true) {
        path.addFirst(Integer.valueOf(node.getID().getObjectID()));

        final RPSlot slot = node.getContainerSlot();

        if (slot == null) {
          break;
        }

        path.addFirst(slot.getName());
        node = node.getContainer();
      }

      return new FQID(path.toArray());
    }
View Full Code Here

TOP

Related Classes of marauroa.common.game.RPSlot

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.