package com.qiwuai.garden.common; public class Constants { /** * 玩家离线-0 */ public static final int OFFLINE = 0; /** * 玩家在线-1 */ public static final int ONLINE = 1; /** * 玩家初始等级 */ public static final int INITIAL_LV = 1; /** * 背包 * 货币-1 */ public static final int ITEM_TYPE_MONEY = 1; /** * 果实-2 */ public static final int ITEM_TYPE_FRUIT = 2; /** * 材料-3 */ public static final int ITEM_TYPE_MATERIAL = 3; /** * 其他-4 */ public static final int ITEM_TYPE_OTHER = 4; /** * 货币 */ public static final int TYPE_MONEY = 1; /** * 物品 */ public static final int TYPE_ITEM = 2; /** * 宠物 */ public static final int TYPE_PET = 3; /** * 很少 */ public static final String FEW = "few"; /** * 很多 */ public static final String LOT = "lot"; /** * 花圃种植状态:0-未种植,1-播种期,2-幼苗期,3-成长期,4-开花期,5-成熟期 * 未种植-0 */ public static final int PLANT_NO = 0; /** * 播种期-1 */ public static final int PLANT_SEEDING = 1; /** * 幼苗期-2 */ public static final int PLANT_SOWING = 2; /** * 成长期-3 */ public static final int PLANT_GROWING = 3; /** * 开花期-4 */ public static final int PLANT_BLOOMING = 4; /** * 成熟期-5 */ public static final int PLANT_MATURE = 5; /** * 花圃未开启 */ public static final int NURSERY_UNUSABLE = 0; /** * 花圃已开启 */ public static final int NURSERY_USABLE = 1; /** * 花圃初始类型id */ public static final int NURSERY_INIT_ID = 1; /** * 宠物还未查看 */ public static final int PET_UNCHECK = 0; /** * 宠物已查看 */ public static final int PET_CHECK = 1; /** * 请求的名称不存在 */ public static final int REQ_NON = -1; /** * 请求的名称随机 */ public static final int REQ_RANDOM = -2; /** * 请求的数量为"都", "统统", "全数", "所有", "全", "全部", "全都", "一起"之类 */ public static final int REQ_ALL = -3; /** * 请求的名称为首个、首位之类 */ public static final int REQ_FIRST = -4; /** * 请求的名称为中间 */ public static final int REQ_MIDDLE = -5; /** * 请求的名称为最后 */ public static final int REQ_LAST = -6; /** * --------------------操作ID,用于记录每轮操作------------------- * 种植 */ public static final Integer PLANT_SEED= 1001; /** * 升级花圃 */ public static final Integer NURSERY_UPGRADE = 1006; /** * 查看植物成熟时间 */ public static final Integer CHECK_MATURE_TIME = 1012; /** * 园丁升级 */ public static final Integer GARDENER_UPGRADE = 2001; /** * 宠物删除 */ public static final Integer PET_DELETE = 3004; /** * 拜访陌生人 */ public static final Integer VISIT_STRANGER = 5001; /** * 添加好友 */ public static final Integer ADD_FRIEND = 5002; /** * 查看园地 */ public static final Integer CHECK_GARDEN = 5005; /** * 偷菜 */ public static final Integer STEAL_OTHER = 5006; /** * 帮助好友 */ public static final Integer HELP_FRIEND = 5007; /** * 查看好友申请 */ public static final Integer ADD_FRIEND_CHECK = 5009; /** * 查看帮助简报 */ public static final Integer CHECK_HELP_REPORT = 5013; /** * 查看偷菜简报 */ public static final Integer CHECK_STEAL_REPORT = 5014; /** * 查看商品 */ public static final Integer CHECK_GOODS = 4003; /** * ----------------------------事件ID---------------------- * 播种 */ public static final int SEEDING_EVENT = 1; /** * 收获 */ public static final int HARVEST_EVENT = 2; /** * 偷菜成功 */ public static final int STEAL_SUCCESS_EVENT = 3; /** * 帮助好友 */ public static final int HELP_EVENT = 4; /** * 日常任务 */ public static final int DAILY_TASK_EVENT = 5; /** * 获得宠物 */ public static final int GET_PET_EVENT = 6; /** * 开启花圃 */ public static final int RECLAIM_NURSERY_EVENT = 7; /** * 偷菜 */ public static final int STEAL_EVENT = 8; /** * 帮助标记:0-未帮助 */ public static final int HELP_NO_SIGN = 0; /** * 帮助标记:1-已帮助 */ public static final int HELP_HAVE_SIGN = 1; /** * 话术-旁白 */ public static final String SPEECH_ASIDE = "aside"; /** * 话术-男园丁 */ public static final String SPEECH_MAN = "man"; /** * 话术-女园丁 */ public static final String SPEECH_WOMAN = "woman"; /** * 好友申请消息提醒 */ public static final String ADD_FRIEND_NOTICE = "addFriend"; /** * 帮助简报消息提醒 */ public static final String HELP_REPORT_NOTICE = "helpReport"; /** * 偷菜简报消息提醒 */ public static final String STEAL_REPORT_NOTICE = "stealReport"; /** * 任务消息提醒 */ public static final String TASK_NOTICE = "task"; /** * 好友留言消息提醒 */ public static final String MESSAGE_NOTICE = "message"; /** * 未成熟-0 */ public static final Integer MATURE_NO = 0; /** * 成熟-1 */ public static final Integer MATURE_YES = 1; /** * 花圃空闲-0 */ public static final Integer NURSERY_FREE = 0; /** * 花圃忙碌-1 */ public static final Integer NURSERY_BUSY = 1; /** * 不存在-0 */ public static final Integer NON = 0; /** * 不存在-0 */ public static final String NON_STR = "0"; /** * 防守失败-0 */ public static final Integer DEFEND_FAIL = 0; /** * 防守成功-1 */ public static final Integer DEFEND_SUCCESS = 1; /** * 偷菜方不战而胜-2 */ public static final Integer DEFEND_FAIL_NO_FIGHT = 2; /** * 简报未读-0 */ public static final Integer READ_NO = 0; /** * 简报已读-1 */ public static final Integer READ_YES = 1; /** * 养成任务-1 */ public static final Integer UPDATE_TASK = 1; /** * 日常任务-2 */ public static final Integer DAILY_TASK = 2; /** * 任务未完成 */ public static final Integer TASK_FINISH_NO = 0; /** * 任务已完成 */ public static final Integer TASK_FINISH_YES = 1; /** * 数据存放地址 */ public static final String userFilePath = "/home/qwyf14/dataBackup/"; }