AffectType.java

codebase/src/net/sourceforge/pain/logic/affect/AffectType.java · 648 B

From the archive pain_0_44.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.logic.affect;

/**
 * User: fmike  Date: Mar 6, 2004  Time: 2:15:58 AM
 */
public final class AffectType {
    //just example of usage:
    
    public static int AFFECT_IMMORTAL = 1;
    public static int AFFECT_IMMOBILE = 2;

    private static int LAST_AFFECT_INDEX_PLUS_1 = 3;
    private static String[] names = new String[LAST_AFFECT_INDEX_PLUS_1];
    static {
        names[0] = "";
        names[AFFECT_IMMORTAL] = "immortality";
        names[AFFECT_IMMOBILE] = "immobility";
    }


    public static String getAffectName(int affectType) {
        return names[affectType];
    }

}

Site Stats

Snippets: 1791
Codebases: 571