public static WallType Next(WallType type) { return((WallType) (((int)type + 1) % WallType.GetValues(typeof(WallType)).Length)); }