DropFn.java

codebase/src/net/sourceforge/pain/logic/fn/DropFn.java · 497 B

From the archive pain_0_44.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.logic.fn;

import net.sourceforge.pain.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