DropFn.java

mudlibs/tinylib/src/net/sourceforge/pain/tinylib/logic/fn/DropFn.java · 549 B

From the archive pain_0_45.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.tinylib.logic.fn;

import net.sourceforge.pain.tinylib.data.type.*;

public class DropFn {

    public static void drop(Creature creature, Physical target) {
        final Located located = creature.asLocated();
        RelocateFn.relocate(target.asLocated(), located.getLocation());
        final Interactive iTarget = target.asInteractive();
        MessageOutFn.outln(creature, "You drop " + iTarget.getDesc() + ".");
        MessageOutFn.outSpace(creature, "$n drops $P.", creature, iTarget, Receptive.SEE);
    }
}

Site Stats

Snippets: 1791
Codebases: 571