package net.sourceforge.pain.logic.fn; import net.sourceforge.pain.data.type.*; public class GiveFn { public static void give(Equipped equipped, Physical obj, Equipped target) { RelocateFn.relocate(obj.asLocated(), target.getInventory()); final Interactive iTarget = target.asInteractive(); final Interactive iObj = obj.asInteractive(); final Interactive iEquipped = equipped.asInteractive(); MessageOutFn.outln(equipped, "You give " + iObj.getDesc() + " to " + iTarget.getName() + "."); MessageOutFn.outln(target, iEquipped.getName() + " gives you " + iObj.getName() + "."); MessageOutFn.outSpaceNoVictim(iEquipped, iTarget, "$n1 gives $n2 to $n3", iEquipped, iObj, iTarget, Receptive.SEE); } }