Here you can find the source of TypeToString(int typeNum)
public static String TypeToString(int typeNum)
//package com.java2s; //License from project: Apache License public class Main { public final static int TYPE_NONE = 0; public final static int TYPE_FIRE = 1; public final static int TYPE_WATER = 2; public final static int TYPE_EARTH = 3; public final static int TYPE_WIND = 4; public final static int TYPE_LIFE = 5; public final static int TYPE_TIME = 6; public final static int TYPE_SPACE = 7; public final static int TYPE_VOID = 8; public static String TypeToString(int typeNum) { switch (typeNum) { case TYPE_FIRE: return "Fire"; case TYPE_WATER: return "Water"; case TYPE_EARTH: return "Earth"; case TYPE_WIND: return "Wind"; case TYPE_LIFE: return "Life"; case TYPE_TIME: return "Time"; case TYPE_SPACE: return "Space"; case TYPE_VOID: return "Void"; case TYPE_NONE: return "Neutral"; default:/*from w ww . ja va 2 s. c om*/ return "None"; } } }