装备升星
parent
c0f10f4f49
commit
b6f5926c4b
|
@ -82,6 +82,7 @@ public interface ActivityType {
|
|||
int COW_FLY_SKY = 62;//牛气冲天
|
||||
int LUCKY_GET = 63;//福星高照
|
||||
int FIFTEEN_LOGIN = 64;//十五日签到
|
||||
int EQUIP_UPLEVEL = 65;
|
||||
|
||||
int SUB_ACTIVITY = 8000;//易经宝库
|
||||
int SKIN_RECHARGE_ACTIVITY = 71;
|
||||
|
|
|
@ -69,6 +69,7 @@ public enum ActivityTypeEnum {
|
|||
COW_FLY_SKY(ActivityType.COW_FLY_SKY,CowFlySkyActivity::new),
|
||||
FIFTEEN_LOGIN(ActivityType.FIFTEEN_LOGIN,FifteenActivity::new),
|
||||
LUCKY_GET(ActivityType.LUCKY_GET,LuckyGetActivity::new),
|
||||
EQUIP_UPLEVEL(ActivityType.EQUIP_UPLEVEL,EquipUpLevelActivity::new),
|
||||
|
||||
;
|
||||
private int type;
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package com.ljsd.jieling.logic.activity;
|
||||
|
||||
import com.ljsd.jieling.logic.activity.event.EquipUpLevelEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.IEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
|
||||
public class EquipUpLevelActivity extends AbstractActivity {
|
||||
public EquipUpLevelActivity(int id) {
|
||||
super(id);
|
||||
Poster.getPoster().listenEvent(this, EquipUpLevelEvent.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEvent(IEvent event) throws Exception {
|
||||
if (!(event instanceof EquipUpLevelEvent)){
|
||||
return;
|
||||
}
|
||||
User user = UserManager.getUser(((EquipUpLevelEvent) event).getuId());
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.ljsd.jieling.logic.activity.event;
|
||||
|
||||
public class EquipUpLevelEvent implements IEvent {
|
||||
private int uId;
|
||||
private int equipId;
|
||||
|
||||
public int getuId() {
|
||||
return uId;
|
||||
}
|
||||
|
||||
public void setuId(int uId) {
|
||||
this.uId = uId;
|
||||
}
|
||||
|
||||
public int getEquipId() {
|
||||
return equipId;
|
||||
}
|
||||
|
||||
public void setEquipId(int equipId) {
|
||||
this.equipId = equipId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
package config;
|
||||
|
||||
import manager.Table;
|
||||
|
||||
@Table(name ="SComposeActivity")
|
||||
public class SComposeActivity implements BaseConfig {
|
||||
private int id;
|
||||
private int activityId;
|
||||
private int[] needItems;
|
||||
private int count;
|
||||
private int composeType;
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
public void setActivityId(int activityId) {
|
||||
this.activityId = activityId;
|
||||
}
|
||||
|
||||
public int[] getNeedItems() {
|
||||
return needItems;
|
||||
}
|
||||
|
||||
public void setNeedItems(int[] needItems) {
|
||||
this.needItems = needItems;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public int getComposeType() {
|
||||
return composeType;
|
||||
}
|
||||
|
||||
public void setComposeType(int composeType) {
|
||||
this.composeType = composeType;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package config;
|
||||
|
||||
import manager.Table;
|
||||
|
||||
@Table(name ="SComposeBook")
|
||||
public class SComposeBook implements BaseConfig {
|
||||
private int id;
|
||||
private int[] needItems;
|
||||
private int[] needCost;
|
||||
private int[] goalItems;
|
||||
private int type;
|
||||
private String desc;
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int[] getNeedItems() {
|
||||
return needItems;
|
||||
}
|
||||
|
||||
public void setNeedItems(int[] needItems) {
|
||||
this.needItems = needItems;
|
||||
}
|
||||
|
||||
public int[] getNeedCost() {
|
||||
return needCost;
|
||||
}
|
||||
|
||||
public void setNeedCost(int[] needCost) {
|
||||
this.needCost = needCost;
|
||||
}
|
||||
|
||||
public int[] getGoalItems() {
|
||||
return goalItems;
|
||||
}
|
||||
|
||||
public void setGoalItems(int[] goalItems) {
|
||||
this.goalItems = goalItems;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue