TellFn.java

mudlibs/tinylib/src/net/sourceforge/pain/tinylib/logic/fn/TellFn.java · 789 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.*;
import net.sourceforge.pain.tinylib.logic.affect.*;

/**
 * User: fmike  Date: May 8, 2004  Time: 1:03:26 AM
 */
public class TellFn {

    public static final void doTell(Interactive src, Interactive victim, String message) {
        if (src.isAffected(AffectType.AFFECT_NOTELL)) {
            MessageOutFn.outln(src, "Your message didn't get through.");
            return;
        }
        if (src == victim) {
            MessageOutFn.outln(src, "Talking to yourself, eh?");
            return;
        }
        MessageOutFn.outOne(src, "You tell $N '{w$t{x'", message, victim);
        MessageOutFn.outOne(victim, "$n tells you '{w$T{x'", src, message);
    }
}

Site Stats

Snippets: 1791
Codebases: 571