DropFn.java

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

From the archive pain_0_42.zip

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(Equipped equipped, Physical target) {
		final Located located = equipped.asLocated();
		RelocateFn.relocate(target.asLocated(), located.getLocation());
		final Interactive iTarget = target.asInteractive();
		MessageOutFn.outln(equipped, "You drop " + iTarget.getDesc() + ".");
		MessageOutFn.outSpace(equipped, "$n drops $P.", equipped, iTarget, Receptive.SEE);
	}
}

Site Stats

Snippets: 1791
Codebases: 571