<commit_before>package Game.Snake.Configuration;

import Game.Snake.Controller.EventProcessListener;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by jakes, lhwarthas on 15/5/6.
 */
public class Config {
    private static List<EventProcessListener> eventListenerList = new ArrayList<>();

    /*
    * 增加更新事件监听器
    *
    * 参数: eventProcessListener  响应更新事件的监听器
    * */
    public static void addUpdateEventListener(EventProcessListener eventProcessListener) {
        eventListenerList.add(eventProcessListener);
    }

    /*
    * 触发Config更新事件
    * */
    public static void update() {
        for (EventProcessListener e : eventListenerList)
            e.updateEvent(null);
    }

    //Constant
    /*
    * 软件版本
    * */
    public static final String VERSION = Version.Version.toUpperCase();

    //Variable
    /*
    * 蛇移动速度
    *
    * 也是碰撞检测的速度
    * 单位: ms
    * */
    public static int SNAKE_SPEED = 200;

    /*
    * 蛇身体每节长度
    * */
    public static int SNAKE_BODY_WIDTH = 6;

    /*
    * 蛇身体节数
    * */
    public static int SNAKE_LENGTH = 5;

    /*
    * 窗口大小
    * */
    public static Dimension SCREEN_SIZE = new Dimension(800, 600);

    /*
    * 控制面板的区域
    * */
    public static int CONTROL_BAR_HEIGHT = 29;

    /*
    * 绘制视口的区域
    * */
    public static Dimension VIEW_SIZE = new Dimension(SCREEN_SIZE.width, SCREEN_SIZE.height - CONTROL_BAR_HEIGHT);

    /*
    * 背景色
    * */
    public static Color BACKGROUD_COLOR = Color.black;

    /*
    * 前景色
    * */
    public static Color FOREGROUD_COLOR = Color.white;

    /*
    * 初始背景图片路径
    * */
    public static String BACKGROUND_PATH_START = "res/bg-1.jpg";

    /*
    * 默认背景图片路径
    * */
    public static String BACKGROUND_PATH_DEFAULT = "res/bg-1.jpg";

    /*
    * 背景图片路径
    * */
    public static String BACKGROUND_PATH = null;

    /*
    * 蛇头图片路径
    * */
    public static String SNAKE_HEAD_IMG = null;

    /*
    * 蛇身图片路径
    * */
    public static String SNAKE_BODY_IMG = null;

    /*
    * 蛇转向图片路径
    * */
    public static String SNAKE_TURN_IMG = null;

    /*
    * 蛇尾图片路径
    * */
    public static String SNAKE_TAIL_IMG = null;
<commit_msg>修改蛇身体大小<commit_after>package Game.Snake.Configuration;

import Game.Snake.Controller.EventProcessListener;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by jakes, lhwarthas on 15/5/6.
 */
public class Config {
    private static List<EventProcessListener> eventListenerList = new ArrayList<>();

    /*
    * 增加更新事件监听器
    *
    * 参数: eventProcessListener  响应更新事件的监听器
    * */
    public static void addUpdateEventListener(EventProcessListener eventProcessListener) {
        eventListenerList.add(eventProcessListener);
    }

    /*
    * 触发Config更新事件
    * */
    public static void update() {
        for (EventProcessListener e : eventListenerList)
            e.updateEvent(null);
    }

    //Constant
    /*
    * 软件版本
    * */
    public static final String VERSION = Version.Version.toUpperCase();

    //Variable
    /*
    * 蛇移动速度
    *
    * 也是碰撞检测的速度
    * 单位: ms
    * */
    public static int SNAKE_SPEED = 200;

    /*
    * 蛇身体每节长度
    * */
    public static int SNAKE_BODY_WIDTH = 8;

    /*
    * 蛇身体节数
    * */
    public static int SNAKE_LENGTH = 5;

    /*
    * 窗口大小
    * */
    public static Dimension SCREEN_SIZE = new Dimension(800, 600);

    /*
    * 控制面板的区域
    * */
    public static int CONTROL_BAR_HEIGHT = 29;

    /*
    * 绘制视口的区域
    * */
    public static Dimension VIEW_SIZE = new Dimension(SCREEN_SIZE.width, SCREEN_SIZE.height - CONTROL_BAR_HEIGHT);

    /*
    * 背景色
    * */
    public static Color BACKGROUD_COLOR = Color.black;

    /*
    * 前景色
    * */
    public static Color FOREGROUD_COLOR = Color.white;

    /*
    * 初始背景图片路径
    * */
    public static String BACKGROUND_PATH_START = "res/bg-1.jpg";

    /*
    * 默认背景图片路径
    * */
    public static String BACKGROUND_PATH_DEFAULT = null;

    /*
    * 背景图片路径
    * */
    public static String BACKGROUND_PATH = null;

    /*
    * 蛇头图片路径
    * */
    public static String SNAKE_HEAD_IMG = null;

    /*
    * 蛇身图片路径
    * */
    public static String SNAKE_BODY_IMG = null;

    /*
    * 蛇转向图片路径
    * */
    public static String SNAKE_TURN_IMG = null;

    /*
    * 蛇尾图片路径
    * */
    public static String SNAKE_TAIL_IMG = null;

{'fraction_non_alphanumeric': 0.10609532538955087, 'fraction_numerical': 0.00847846012832264, 'mean_word_length': 2.0913597733711047, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4998883', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1770, 'n_words': 304}