RangeOutFn.java

codebase/src/net/sourceforge/pain/logic/fn/RangeOutFn.java · 781 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.*;
import net.sourceforge.pain.data.type.*;
import net.sourceforge.pain.util.*;

import java.util.*;

/**
 this class used to out some system message (area reset, weather change)
 to the specified range. TODO: more clear specification (shouts......)
 */
public final class RangeOutFn {

	public static final int RANGE_WORLD = 0;
//	public static final int RANGE_SPACE_GROUP = 1;


	public static void outWorld(String message) {
		if (message == null) {
			Log.error("Message is NULL!");
		} else {
			for (Iterator it = Core.extentIterator(Receptive.class); it.hasNext();) {
				Receptive r = (Receptive) it.next();
				MessageOutFn.outln(r, message, Receptive.HEAR);
			}
		}
	}
}

Site Stats

Snippets: 1791
Codebases: 571